Class: Optimacms::Admin::AdminBaseController

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

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



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

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

end

#set_layout_modal_oldObject



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

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

end