module AssociateJsonb::WithStoreAttribute
Public Instance Methods
[](k)
click to toggle source
Calls superclass method
# File lib/associate_jsonb/with_store_attribute.rb, line 176 def [](k) if is_store_column_attribute?(k) self.public_send(k) else super end end
[]=(k, v)
click to toggle source
Calls superclass method
# File lib/associate_jsonb/with_store_attribute.rb, line 184 def []=(k, v) if is_store_column_attribute?(k) self.public_send(:"#{k}=", v) else super end end
is_store_column_attribute?(name)
click to toggle source
# File lib/associate_jsonb/with_store_attribute.rb, line 172 def is_store_column_attribute?(name) self.class.is_store_column_attribute?(name) end