User symbols for attributes

This commit is contained in:
Gui Vieira 2019-12-29 20:34:49 -08:00
parent d2e6c4f329
commit ef4284cb16
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ module Shoulda
end end
def set def set
object.public_send("#{attribute_name}=", value_written) object.public_send("#{attribute_name}=".to_sym, value_written)
after_set_callback.call after_set_callback.call
@result_of_checking = successful_check @result_of_checking = successful_check
@ -135,7 +135,7 @@ module Shoulda
end end
def value_read def value_read
@_value_read ||= object.public_send(attribute_name) @_value_read ||= object.public_send(attribute_name.to_sym)
end end
def attribute_changed_value? def attribute_changed_value?