Module: ActiveModel::Coercions
- Defined in:
- lib/active_model/coercions.rb,
lib/active_model/coercions/version.rb,
lib/active_model/coercions/types/date.rb,
lib/active_model/coercions/types/time.rb,
lib/active_model/coercions/types/float.rb,
lib/active_model/coercions/types/symbol.rb,
lib/active_model/coercions/types/boolean.rb,
lib/active_model/coercions/types/integer.rb,
lib/active_model/coercions/types/datetime.rb
Defined Under Namespace
Modules: ClassMethods, Types
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/active_model/coercions.rb', line 3 def attributes @attributes end |
Class Method Details
.included(base) ⇒ Object
6 7 8 9 |
# File 'lib/active_model/coercions.rb', line 6 def included(base) base.extend(ClassMethods) base.class_eval { @declared_coercions = {} } end |