Class: Trestle::AdminController

Inherits:
ApplicationController show all
Defined in:
app/controllers/trestle/admin_controller.rb

Direct Known Subclasses

ResourceController

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModalHelper

#modal_dialog_attributes, #modal_options, #modal_options!, #modal_wrapper_attributes

Methods included from Controller::Location

#set_trestle_location_header

Methods included from FlashHelper

#debug_form_errors?, #instance_has_errors?, #normalize_flash_alert

Class Attribute Details

.adminObject (readonly)

Returns the value of attribute admin.



10
11
12
# File 'app/controllers/trestle/admin_controller.rb', line 10

def admin
  @admin
end

Instance Method Details

#adminObject



19
20
21
# File 'app/controllers/trestle/admin_controller.rb', line 19

def admin
  @_admin ||= self.class.admin.new(self)
end

#indexObject



6
7
# File 'app/controllers/trestle/admin_controller.rb', line 6

def index
end