Class: Eventable::Price
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Eventable::Price
- Defined in:
- app/models/eventable/price.rb
Instance Method Summary collapse
Instance Method Details
#price=(p) ⇒ Object
12 13 14 |
# File 'app/models/eventable/price.rb', line 12 def price=(p) write_attribute(:price, p.gsub(',', '.')) end |