Sha256: eb33ea999741d7352340ae2962962ebbb7e030801a283e0dd628d0ae25f4ea60
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
module Trestle class Admin class Controller < Trestle::ApplicationController def index end class << self attr_reader :admin def controller_path admin ? admin.controller_path : super end end def admin @_admin ||= self.class.admin.new(self) end helper_method :admin protected def breadcrumbs @breadcrumbs ||= admin.breadcrumbs.dup end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.12 | lib/trestle/admin/controller.rb |
trestle-0.8.11 | lib/trestle/admin/controller.rb |