Skip to content

Commit

Permalink
Merge pull request #3334 from emberjs/deprecate-active-model-adapter
Browse files Browse the repository at this point in the history
deprecate ActiveModelAdapter being bundled with core
  • Loading branch information
igorT committed Jun 15, 2015
2 parents 0fa435f + bb11d58 commit 856da2e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions packages/ember-data/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,27 @@ DS.StringTransform = StringTransform;
DS.NumberTransform = NumberTransform;
DS.BooleanTransform = BooleanTransform;

DS.ActiveModelAdapter = ActiveModelAdapter;
DS.ActiveModelSerializer = ActiveModelSerializer;
if (Ember.platform.hasPropertyAccessors) {
Ember.defineProperty(DS, 'ActiveModelAdapter', {
get: function() {
Ember.deprecate('The ActiveModelAdapter has been moved into a plugin. It will not be bundled with Ember Data in 2.0', false, {
url: 'https://github.com/ember-data/active-model-adapter'
});
return ActiveModelAdapter;
}
});
Ember.defineProperty(DS, 'ActiveModelSerializer', {
get: function() {
Ember.deprecate('The ActiveModelSerializer has been moved into a plugin. It will not be bundled with Ember Data in 2.0', false, {
url: 'https://github.com/ember-data/active-model-adapter'
});
return ActiveModelSerializer;
}
});
} else {
DS.ActiveModelAdapter = ActiveModelAdapter;
DS.ActiveModelSerializer = ActiveModelSerializer;
}
DS.EmbeddedRecordsMixin = EmbeddedRecordsMixin;

DS.belongsTo = belongsTo;
Expand Down

0 comments on commit 856da2e

Please sign in to comment.