Class: MoneyColumn::ActiveRecordType
- Inherits:
-
ActiveRecord::Type::Decimal
- Object
- ActiveRecord::Type::Decimal
- MoneyColumn::ActiveRecordType
- Defined in:
- lib/money_column/active_record_type.rb
Instance Method Summary collapse
Instance Method Details
#serialize(money) ⇒ Object
3 4 5 6 |
# File 'lib/money_column/active_record_type.rb', line 3 def serialize(money) return nil unless money super(money.to_d) end |