Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Deprecation under rails 3.1 #6

Closed
Godisemo opened this Issue · 1 comment

2 participants

Godisemo Adam Meehan
Godisemo

I get this warning when using this plugin with rails 3.1

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 block in <top (required)> at /Users/[...]/config/initializers/active_enum.rb:4

Where the row causing the error is

config.extend_classes = [ ActiveRecord::Base ]

My configuration in full looks like

require 'active_enum/form_helpers/simple_form'

ActiveEnum.setup do |config|
  config.extend_classes = [ ActiveRecord::Base ]
end
Adam Meehan
Owner

I have fixed this in 0.9.4 which I just pushed. Thanks.

Adam Meehan adzap closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.