Class: FinancialTransactionSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- FinancialTransactionSerializer
- Includes:
- ApplicationHelper
- Defined in:
- app/serializers/financial_transaction_serializer.rb
Instance Method Summary collapse
Methods included from ApplicationHelper
#base_errors, #bootstrap_flash_patched, #close_button, #expand, #foodcoop_css_path, #foodcoop_css_tag, #format_currency, #format_date, #format_datetime, #format_datetime_timespec, #format_roles, #format_time, #heading_helper, #icon, #items_per_page, #link_to_gmaps, #link_to_top, #pagination_links_remote, #remote_link_to, #show_title?, #show_user, #show_user_link, #sort_link_helper, #tab_is_active?, #title, #truncate, #weekday
Methods included from PathHelper
#finance_group_transactions_path
Instance Method Details
#amount ⇒ Object
10 11 12 |
# File 'app/serializers/financial_transaction_serializer.rb', line 10 def amount object.amount.to_f end |
#user_name ⇒ Object
6 7 8 |
# File 'app/serializers/financial_transaction_serializer.rb', line 6 def user_name show_user object.user end |