Skip to content

Commit

Permalink
Merge pull request #165 from tom-kuca/keyword-attribute-patch
Browse files Browse the repository at this point in the history
Support attributes that are also a keyword
  • Loading branch information
kratob authored Jul 21, 2022
2 parents 95e7783 + 9ec81be commit 8fc5d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_type/virtual_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def #{name}_was

@module.module_eval <<-BODY, __FILE__, __LINE__ + 1
def #{name}_changed?
#{name} != virtual_attributes_were["#{name}"]
self.#{name} != virtual_attributes_were["#{name}"]
end
BODY

Expand Down

0 comments on commit 8fc5d6c

Please sign in to comment.