Class: Trestle::Admin::Controller

Inherits:
Trestle::ApplicationController show all
Defined in:
lib/trestle/admin/controller.rb

Direct Known Subclasses

Resource::Controller

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.



8
9
10
# File 'lib/trestle/admin/controller.rb', line 8

def admin
  @admin
end

Instance Method Details

#adminObject



17
18
19
# File 'lib/trestle/admin/controller.rb', line 17

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

#indexObject



4
5
# File 'lib/trestle/admin/controller.rb', line 4

def index
end