Module: Dsl::Attributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveFormObjects::Base
- Defined in:
- lib/dsl/attributes.rb
Constant Summary collapse
- @@attributes =
{}
- @@overrided_params =
{}
- @@remaped_params =
{}
- @@default_params =
{}
- @@preparers =
{}
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
19 20 21 |
# File 'lib/dsl/attributes.rb', line 19 def attributes instance_values.with_indifferent_access.symbolize_keys end |
#attrs_only(params) ⇒ Object
15 16 17 |
# File 'lib/dsl/attributes.rb', line 15 def attrs_only(params) attributes.slice(*params) end |