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

Model.resource is not working with inherited classes #1089

Merged
merged 2 commits into from
Jul 10, 2014
Merged

Conversation

alexisabril
Copy link
Contributor

I have modified example Todo fiddle to show that if Model is inherited from some base class, resource property does not work.

http://jsfiddle.net/prinzC/xKc3H/386/

var BaseTodo = can.Model.extend({})

var Todo = BaseTodo.extend({
    resource: '/todos'
}, {});

@wclr wclr changed the title Model resource is not working with inherited classes Model.resource is not working with inherited classes Jun 16, 2014
alexisabril added a commit that referenced this pull request Jun 27, 2014
@alexisabril alexisabril added this to the 2.1.3 milestone Jun 27, 2014
@alexisabril
Copy link
Contributor

@justinbmeyer Good call. I added an additional test and modified the condition to which we call ajaxMaker.

alexisabril pushed a commit that referenced this pull request Jul 1, 2014
alexisabril pushed a commit that referenced this pull request Jul 1, 2014
alexisabril and others added 2 commits July 9, 2014 12:32
adding test for clobbering CRUD overrides when using resource #1089

proper logic to handle functions, strings, objects and overrides with resource #1089

additional docs for #1089

conflicting fixture #1089

simplifying the condition checking for object overrides. #1089
daffl added a commit that referenced this pull request Jul 10, 2014
Model.resource is not working with inherited classes
@daffl daffl merged commit 277f23b into master Jul 10, 2014
@daffl daffl deleted the 1089-resource branch July 10, 2014 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants