lib/trestle/admin/controller.rb in trestle-0.8.12 vs lib/trestle/admin/controller.rb in trestle-0.8.13
- old
+ new
@@ -5,11 +5,13 @@
end
class << self
attr_reader :admin
- def controller_path
- admin ? admin.controller_path : super
+ private
+ def local_prefixes
+ return admin.view_path_prefixes if admin
+ [controller_path.sub(/\/$/, "")]
end
end
def admin
@_admin ||= self.class.admin.new(self)