From 4e3a7559089dbc668f1773a64d3d25a8699b1989 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 7 Jan 2016 10:54:09 +0100 Subject: [PATCH] [deprecations] Use Adapter#findRecord instead of Adapter#find --- app/adapters/ssh-key.js | 2 +- config/deprecation-workflow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/adapters/ssh-key.js b/app/adapters/ssh-key.js index 25e9113a..2d27f0ba 100644 --- a/app/adapters/ssh-key.js +++ b/app/adapters/ssh-key.js @@ -4,7 +4,7 @@ import ApplicationAdapter from 'travis/adapters/application'; export default ApplicationAdapter.extend({ namespace: 'settings', - find(store, type, id, record) { + findRecord(store, type, id, record) { return this.ajax(this.urlPrefix() + '/ssh_key/' + id, 'GET'); }, diff --git a/config/deprecation-workflow.js b/config/deprecation-workflow.js index 6758ed1b..0b20489e 100644 --- a/config/deprecation-workflow.js +++ b/config/deprecation-workflow.js @@ -10,6 +10,7 @@ window.deprecationWorkflow.config = { // request-icon compoenent, that makes Ember.js think that we're using // internal component's state { handler: "log", matchMessage: "Usage of `state` is deprecated, use `_state` instead." }, + { handler: "log", matchMessage: "RestAdapter#find has been deprecated and renamed to `findRecord`." }, // TODO { handler: "silence", matchMessage: "Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy." }, @@ -19,7 +20,6 @@ window.deprecationWorkflow.config = { { handler: "silence", matchMessage: "`Ember.ArrayController` is deprecated." }, { handler: "silence", matchMessage: "Ember.removeBeforeObserver is deprecated and will be removed in the near future." }, { handler: "silence", matchMessage: "The default behavior of `shouldBackgroundReloadRecord` will change in Ember Data 2.0 to always return true. If you would like to preserve the current behavior please override `shouldBackgroundReloadRecord` in your adapter:application and return false." }, - { handler: "silence", matchMessage: "RestAdapter#find has been deprecated and renamed to `findRecord`." }, { handler: "silence", matchMessage: "Using the same function as getter and setter is deprecated." }, { handler: "silence", matchMessage: "Using store.dematerializeRecord() has been deprecated since it was intended for private use only. You should use store.unloadRecord() instead." }, { handler: "silence", matchMessage: "Using DS.Snapshot.get() is deprecated. Use .attr(), .belongsTo() or .hasMany() instead." },