Class: RedBase::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RedBase::DashboardController
- Includes:
- RedBase::Dashboard::Controller
- Defined in:
- app/controllers/red_base/dashboard_controller.rb
Instance Method Summary collapse
Methods included from RedBase::Dashboard::Controller
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
17 18 19 |
# File 'app/controllers/red_base/dashboard_controller.rb', line 17 def index @jstemplates_path = "/templates" end |
#jstemplate ⇒ Object
13 14 15 |
# File 'app/controllers/red_base/dashboard_controller.rb', line 13 def jstemplate render :template => "angularjs_templates/#{params[:path]}", :layout => nil end |
#modules ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'app/controllers/red_base/dashboard_controller.rb', line 21 def modules dashboard_modules = [] RedBase::Engine.dashboard_modules.each do |module_name, attrs| if not attrs.include? :title attrs[:title] = _(module_name.to_s) end if not attrs.include? :resource attrs[:resource] = module_name.to_s end dashboard_modules << attrs end dashboard_modules = {:modules => dashboard_modules} respond_with dashboard_modules end |