DEPRECATION WARNING: The cattr_* method definitions have been moved into active_support/core_ext/module/attribute_accessors. (Rails 4.1.0.beta1) #620

afn opened this Issue Jan 15, 2014 · 20 comments

lib/delayed/worker.rb has:

require 'active_support/core_ext/class/attribute_accessors'

For Rails 4.1 this should be changed to:

require 'active_support/core_ext/module/attribute_accessors'

+1, I can confirm this error too.


+1 same here


+1 seeing this issue as well


+1 same here


+1 same


+1 Same error




I fixed this in a fork, can I pull it to this repository? Might break when running Rails 3.x







Any updates?

@Hirurg103 Hirurg103 added a commit that referenced this issue Mar 21, 2014
@Hirurg103 Hirurg103 Require 'active_support/core_ext/module/attribute_accessors' instead …
…of active_support/core_ext/class/attribute_accessors' in order to avoid deprecation warnings

[closes #620]

I opened a pull request to address this in a backwards compatible fashion: see #642. Haven't tested it yet.



Collective Idea member

ActiveSupport removed the deprecation warning

@albus522 albus522 closed this Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment