Sha256: 337e2f5ccd60c51dce221a11beb14b5cd4f3fdf929bd7b31b15a790a42287342
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
module Trestle class Admin class Controller < Trestle::ApplicationController def index end class << self attr_reader :admin private def local_prefixes return admin.view_path_prefixes if admin [controller_path.sub(/\/$/, "")] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.9.1 | lib/trestle/admin/controller.rb |
trestle-0.9.0 | lib/trestle/admin/controller.rb |
trestle-0.8.13 | lib/trestle/admin/controller.rb |