Module: ActsAsReportable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/acts_as_reportable.rb
Overview
ActsAsReportable
Mark your model with ‘acts_as_reportable’ to be included in the reports
Defined Under Namespace
Modules: Base, ClassMethods
Constant Summary collapse
- PRICE_NAME_ATTRIBUTES =
['price', 'subtotal', 'tax', 'total', 'current_revenue', 'current_revenue_subtotal', 'current_revenue_tax', 'deferred_revenue', 'deferred_revenue_subtotal', 'deferred_revenue_tax', 'amount_owing', 'surcharge']
Instance Method Summary collapse
-
#reportable_attributes ⇒ Object
{ id: :integer, price: :price, created_at: :date }.
-
#reportable_scopes ⇒ Object
{ active: nil, inactive: nil, with_first_name: :string, not_in_good_standing: :boolean }.
Instance Method Details
#reportable_attributes ⇒ Object
{ id: :integer, price: :price, created_at: :date }
23 24 25 |
# File 'app/models/concerns/acts_as_reportable.rb', line 23 def reportable_attributes all_reportable_attributes || {} end |
#reportable_scopes ⇒ Object
{ active: nil, inactive: nil, with_first_name: :string, not_in_good_standing: :boolean }
28 29 30 |
# File 'app/models/concerns/acts_as_reportable.rb', line 28 def reportable_scopes {} end |