Fair enough. Later on, having an API endpoint for enabled features may come
in useful – it may be that we want Rails to provide us with the feature
flag config.

Feel free to change this though. The set() method here expects a Promise.

On Friday, May 30, 2014, Till Breuer <notifications@github.com> wrote:

> In app/assets/javascripts/angular/openproject-app.js:
>
> >      $http.defaults.headers.common.Accept = 'application/json';
> > +
> > +    flags.set($http.get('/javascripts/feature-flags.json'));
>
> I'd rather inject a configuration holding the flags. why do we need to get
> this configuration via http?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/opf/openproject/pull/1396/files#r13224063>.
>