Sha256: 3ebdc0c5d3d608e05142a8546fa35f65a65ec2c3781d1e8f3cf74700525390a6
Contents?: true
Size: 430 Bytes
Versions: 10
Compression:
Stored size: 430 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 delegate :admin, to: :class helper_method :admin protected def breadcrumbs @breadcrumbs ||= admin.breadcrumbs.dup end end end end
Version data entries
10 entries across 10 versions & 1 rubygems