モデルのコードは次のとおりです。
class MyModel < ActiveRecord::Base
def role
read_attributes(:role).to_sym
end
def role= value
write_attributes :role, value.to_s
end
end
しかし、次のエラーが発生しました:
undefined method read_attributes for MyModel:0x00000003014070