Moved financial_transaction into the new finance-namespace.
This commit is contained in:
parent
1d85b880f2
commit
c282cae79c
19 changed files with 167 additions and 153 deletions
|
|
@ -19,7 +19,7 @@ class FinancialTransaction < ActiveRecord::Base
|
|||
|
||||
validates_presence_of :note, :user_id, :order_group_id
|
||||
validates_numericality_of :amount
|
||||
|
||||
|
||||
# Custom attribute setter that accepts decimal numbers using localized decimal separator.
|
||||
def amount=(amount)
|
||||
self[:amount] = String.delocalized_decimal(amount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue