Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC release] Update misleading example for Adapter.queryRecord() #3615

Merged
merged 1 commit into from
Aug 3, 2015

Conversation

HeroicEric
Copy link
Member

  • Uses ember-cli style modules
  • Removes id param


export default DS.Adapter.extend(DS.BuildURLMixin, {
queryRecord: function(store, type, query) {
var url = this.buildURL(type.modelName, null, null, 'queryRecord', query);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be urlForQueryRecord instead to make it a bit cleaner?

bmac added a commit that referenced this pull request Aug 3, 2015
[DOC release] Update misleading example for Adapter.queryRecord()
@bmac bmac merged commit f989308 into emberjs:master Aug 3, 2015
@bmac
Copy link
Member

bmac commented Aug 3, 2015

Thanks @HeroicEric


export default DS.Adapter.extend(DS.BuildURLMixin, {
queryRecord: function(store, type, query) {
var urlForQueryRecord = this.buildURL(type.modelName, null, null, 'queryRecord', query);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record I didn't mean to change the variable name but to call urlForQueryRecord instead of buildURL :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

@HeroicEric HeroicEric deleted the update-query-record-example branch January 15, 2016 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants