Module: EffectiveReports

Includes:
EffectiveGem
Defined in:
lib/effective_reports.rb,
lib/effective_reports/engine.rb,
lib/effective_reports/version.rb,
lib/generators/effective_reports/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'0.4.9'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/effective_reports.rb', line 8

def self.config_keys
  [
    # Database Tables
    :reports_table_name, :report_columns_table_name, :report_scopes_table_name,

    :reportable_class_names,

    # Effective Gem
    :layout,
    :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_froms, :mailer_admin, :mailer_subject
  ]
end

.reportable_classesObject



23
24
25
# File 'lib/effective_reports.rb', line 23

def self.reportable_classes
  Array(reportable_class_names).map(&:safe_constantize).select { |klass| klass.try(:acts_as_reportable?) }
end