Module: Findable::Schema
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/findable/schema.rb,
lib/findable/schema/conversion.rb
Defined Under Namespace
Modules: ClassMethods, Conversion
Instance Method Summary
collapse
Instance Method Details
#attribute=(attr, value) ⇒ Object
41
42
43
44
|
# File 'lib/findable/schema.rb', line 41
def attribute=(attr, value)
public_send("#{attr}_will_change!")
attributes[attr] = value
end
|
#attribute?(attr) ⇒ Boolean
46
47
48
|
# File 'lib/findable/schema.rb', line 46
def attribute?(attr)
attributes[attr].present?
end
|