Class: Optimacms::Admin::AdminBaseController

Inherits:
Optimacms::ApplicationController show all
Defined in:
app/controllers/optimacms/admin/admin_base_controller.rb

Direct Known Subclasses

DashboardController

Instance Method Summary collapse

Methods inherited from Optimacms::ApplicationController

#current_lang, #not_found

Methods included from Optimacms::ApplicationHelper

#block, #meta_tags, #method_missing, #site_page_path, #tinymce_editor_insert_block

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Optimacms::ApplicationHelper

Instance Method Details

#after_sign_in_path_for(resource) ⇒ Object



25
26
27
28
29
30
31
32
# File 'app/controllers/optimacms/admin/admin_base_controller.rb', line 25

def (resource)
  if resource.is_a?(CmsAdminUser)
    dashboard_path
  else
    root_path
  end

end

#set_layout_modal ⇒ Object

modal



17
18
19
20
21
22
# File 'app/controllers/optimacms/admin/admin_base_controller.rb', line 17

def set_layout_modal
  if @modal==1
    self.class.layout false
  end

end