This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/initializers/global-variables.js
2015-06-11 13:57:29 -08:00

19 lines
559 B
JavaScript

import Ember from 'ember';
import config from '../config/environment';
var globals = Ember.Object.extend({
genus: config.genus,
apiURL: config.apiURL,
});
export function initialize(container, application) {
application.register('global:variables', globals, {singleton: true});
application.inject('controller', 'globals', 'global:variables');
application.inject('component', 'globals', 'global:variables');
application.inject('adapter', 'globals', 'global:variables');
}
export default {
name: 'global-variables',
initialize: initialize
};