ianwhite/resources_controller — Issue #7: Rails 3.1.3 deprecation warning
Author: paolodona
Created: 2011-11-29 12:21:12+00:00
State: open

Hello Ian, this is Paolo you may remember me from a railsconf a few year back.
I'm trying to use your fantastic resources_controller in a new Rails 3.1.3 app (ruby 1.9.2) and I just wanted to let you know that it's spitting out a lot of warnings:

DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from resources_controller_for at /Users/paolo/.rvm/gems/ruby-1.9.2-p290@abc_rails3_192/bundler/gems/resources_controller-72ba5baee8fb/lib/ardes/resources_controller.rb:456)

I tried to fix it myself unsuccessfully (e.g.: https://github.com/paolodona/resources_controller/commit/d9190e949e973a2aa34268f7b15f76de72d4c75f) but I have to be honest, I haven't coded in about two years so I'm a bit rusty...

Do you have any idea how this could be fixed, I may give it another go!
Paolo