Class: Trestle::Admin::Controller
- Inherits:
-
Trestle::ApplicationController
- Object
- ActionController::Base
- Trestle::ApplicationController
- Trestle::Admin::Controller
- Defined in:
- lib/trestle/admin/controller.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.admin ⇒ Object
readonly
Returns the value of attribute admin.
Instance Method Summary collapse
Methods included from Controller::Location
#set_trestle_location_header, #visit_location_with_turbolinks
Class Attribute Details
.admin ⇒ Object (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
#admin ⇒ Object
17 18 19 |
# File 'lib/trestle/admin/controller.rb', line 17 def admin @_admin ||= self.class.admin.new(self) end |
#index ⇒ Object
4 5 |
# File 'lib/trestle/admin/controller.rb', line 4 def index end |