User symbols for attributes
This commit is contained in:
parent
d2e6c4f329
commit
ef4284cb16
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue