Module: PushType::Customizable
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::Dirty
- Defined in:
- app/models/concerns/push_type/customizable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#attribute_for_inspect(attr_name) ⇒ Object
Overrides ActiveRecord::Base#attribute_for_inspect Minimises field_store value for more readable inspect.
- #fields ⇒ Object
Instance Method Details
#attribute_for_inspect(attr_name) ⇒ Object
Overrides ActiveRecord::Base#attribute_for_inspect Minimises field_store value for more readable inspect
16 17 18 19 20 21 22 |
# File 'app/models/concerns/push_type/customizable.rb', line 16 def attribute_for_inspect(attr_name) if attr_name.to_s == 'field_store' fields.keys.inspect else super end end |
#fields ⇒ Object
10 11 12 |
# File 'app/models/concerns/push_type/customizable.rb', line 10 def fields @fields ||= {} end |