We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# user.rb # t.enum :rank # t.string :name class User < ActiveRecord::Base enum_attr :rank, %w{user administrator} def name=(_name) self[:name] = "#{_name.upcase} + THE GREAT" end end
Then
User.new(:name => "bob").name => "bob" User.create(:name => "bob").name => "bob"
When the return should be "BOB THE GREAT"
"BOB THE GREAT"
When enum_attr is commented out, it works correctly.
enum_attr
Using current version of enumerated_attribute (0.2.16) and Rails 3.1
enumerated_attribute
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Then
When the return should be
"BOB THE GREAT"
When
enum_attr
is commented out, it works correctly.Using current version of
enumerated_attribute
(0.2.16) and Rails 3.1The text was updated successfully, but these errors were encountered: