Module: DashCreator
- Defined in:
- lib/dash_creator.rb,
lib/dash_creator/engine.rb,
lib/dash_creator/version.rb,
app/models/dash_creator/chart.rb,
app/models/dash_creator/filter.rb,
app/models/dash_creator/dashboard.rb,
app/helpers/dash_creator/user_helper.rb,
app/helpers/dash_creator/chart_helper.rb,
app/jobs/dash_creator/application_job.rb,
lib/dash_creator/acts_as_dash_creator.rb,
app/helpers/dash_creator/filter_helper.rb,
app/models/dash_creator/dashboard_object.rb,
app/helpers/dash_creator/dashboard_helper.rb,
lib/dash_creator/acts_as_dashboard_object.rb,
app/models/dash_creator/application_record.rb,
app/helpers/dash_creator/application_helper.rb,
app/mailers/dash_creator/application_mailer.rb,
app/controllers/dash_creator/user_controller.rb,
app/controllers/dash_creator/chart_controller.rb,
app/controllers/dash_creator/filter_controller.rb,
app/helpers/dash_creator/dashboard_object_helper.rb,
app/controllers/dash_creator/dashboard_controller.rb,
lib/generators/dash_creator/install/install_generator.rb,
app/controllers/dash_creator/dashboard_object_controller.rb
Defined Under Namespace
Modules: ActsAsDashCreator, ActsAsDashboardObject, ApplicationHelper, ChartHelper, DashboardHelper, DashboardObjectHelper, FilterHelper, Generators, UserHelper
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Chart, ChartController, Configuration, Dashboard, DashboardController, DashboardObject, DashboardObjectController, Engine, Filter, FilterController, UserController
Constant Summary
collapse
- VERSION =
'0.1.2'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
39
40
41
|
# File 'lib/dash_creator.rb', line 39
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
.attributes_aliases ⇒ Object
68
69
70
|
# File 'lib/dash_creator.rb', line 68
def self.attributes_aliases
self.configuration.attributes_aliases.stringify_keys
end
|
.columns_aliases ⇒ Object
72
73
74
|
# File 'lib/dash_creator.rb', line 72
def self.columns_aliases
self.configuration.columns_aliases.stringify_keys
end
|
43
44
45
|
# File 'lib/dash_creator.rb', line 43
def configure
yield(configuration)
end
|
.displayed_attribute_names ⇒ Object
80
81
82
|
# File 'lib/dash_creator.rb', line 80
def self.displayed_attribute_names
self.configuration.displayed_attribute_names.deep_stringify_keys
end
|
.displayed_model_names ⇒ Object
76
77
78
|
# File 'lib/dash_creator.rb', line 76
def self.displayed_model_names
self.configuration.displayed_model_names.stringify_keys
end
|
.except_attributes ⇒ Object
64
65
66
|
# File 'lib/dash_creator.rb', line 64
def self.except_attributes
self.configuration.except_attributes
end
|
.except_models ⇒ Object
60
61
62
|
# File 'lib/dash_creator.rb', line 60
def self.except_models
self.configuration.except_models.map{ |m| m.gsub('::', '') }
end
|
.layout_path ⇒ Object
84
85
86
|
# File 'lib/dash_creator.rb', line 84
def self.layout_path
self.configuration.layout_path
end
|
.redis_store_variable ⇒ Object
52
53
54
|
# File 'lib/dash_creator.rb', line 52
def self.redis_store_variable
self.configuration.redis_store_variable
end
|
.use_pgcrypto ⇒ Object
48
49
50
|
# File 'lib/dash_creator.rb', line 48
def self.use_pgcrypto
self.configuration.use_pgcrypto
end
|
.user_class ⇒ Object
56
57
58
|
# File 'lib/dash_creator.rb', line 56
def self.user_class
self.configuration.user_class.safe_constantize
end
|