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 Controller::Location

#set_trestle_location_header, #visit_location_with_turbolinks

Class Attribute Details

.adminObject (readonly)

Returns the value of attribute admin


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

def admin
  @admin
end

Instance Method Details

#adminObject


15
16
17
# File 'app/controllers/trestle/admin_controller.rb', line 15

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

#indexObject


2
3
# File 'app/controllers/trestle/admin_controller.rb', line 2

def index
end