lib/trestle/admin/controller.rb in trestle-0.8.10 vs lib/trestle/admin/controller.rb in trestle-0.8.11

- old
+ new

@@ -10,10 +10,12 @@ def controller_path admin ? admin.controller_path : super end end - delegate :admin, to: :class + def admin + @_admin ||= self.class.admin.new(self) + end helper_method :admin protected def breadcrumbs @breadcrumbs ||= admin.breadcrumbs.dup