Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

In a controller, update_attributes is not supported #109

Open
codeblooded opened this issue Nov 23, 2015 · 1 comment
Open

In a controller, update_attributes is not supported #109

codeblooded opened this issue Nov 23, 2015 · 1 comment

Comments

@codeblooded
Copy link

I'm new to this gem, so pardon me if I'm misunderstanding something. This is totally possible.

I have a User model which is using ActiveRestClient (1.2.0). I'm unable to access the standard model#update_attributes aliased for model#update found in ActiveRecord::Persistence. However, update_attribute is found.

When using the console, I can see that these methods are nil. I feel like ActiveRestClient should support these standard methods, or the documentation should describe why they are not supported and suggest model#save only.

@andyjeffries
Copy link
Contributor

The reason it doesn't it that we've tried to map as few methods in to the namespace as possible - that way they are available for attribute names and mapped method names (because often uses of ActiveRestClient, and Flexirest don't control the API).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants