-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
update_resourse isn't called unless I override update #2457
Comments
I just tried this myself and am not having this problem. What version of Active Admin, and Rails are you using? |
Rails 3.2.13 on ruby 1.8.7 Active Admin is mostly unusable for us in our project I think. Too many of our crazy patches conflicting with modern rails code. I'll leave this open in case anyone has thoughts and close it in week if no one else has any thoughts. |
I have no idea what crazy patches you think Active Admin has. If you don't like it, don't use it. By the way: you desperately need to upgrade to Ruby 1.9 or 2.0. Ruby 1.8 has been officially deprecated and is no longer being maintained. In fact, it's possible that that's the problem, since blocks in Ruby 1.8 have a different |
No I meant our crazy patches, not active_admin's. I want to use it as it makes the admin code so easy! Thanks for the info about arity. That seems like a likely culprit. |
Ah, my bad :] Hopefully you get this figured out. By the way, this is what I was referencing when I mentioned arity: #1930 (comment) So Inherited Resources itself checks the arity of the block passed. I seem to remember a problem / hack used for Ruby 1.8 |
If I do the following, update_resource gets called.
However if I leave off my overridden "update", I don't get a call to update_resource. Any reason you can think of why that would be the case?
The text was updated successfully, but these errors were encountered: