lib/huberry/object.rb in shuber-attr_encrypted-1.0.0 vs lib/huberry/object.rb in shuber-attr_encrypted-1.0.1
- old
+ new
@@ -8,18 +8,14 @@
encrypted_attributes = {}
end
end
# Wraps instance_variable_get
- #
- # ActiveRecord overwrites this (if you're using it)
def read_attribute(attribute)
instance_variable_get("@#{attribute}")
end
# Wraps instance_variable_set
- #
- # ActiveRecord overwrites this (if you're using it)
def write_attribute(attribute, value)
instance_variable_set("@#{attribute}", value)
end
module ClassMethods
\ No newline at end of file