diff --git a/app/models/supporter_level.rb b/app/models/supporter_level.rb index ab1da49f..2f1ca6c5 100644 --- a/app/models/supporter_level.rb +++ b/app/models/supporter_level.rb @@ -4,9 +4,7 @@ class SupporterLevel < ActiveRecord::Base monetize :price_cents, with_model_currency: :price_currency attr_accessible :conference, :title, :url, :description, :price_currency, :amount, :price_cents validate :convert_money_to_cents - private - def convert_money_to_cents self.price_cents = (self.amount.to_d * 100).to_i end