rosa-build/app/helpers/active_admin/admin_helper.rb

11 lines
186 B
Ruby
Raw Normal View History

2014-04-11 21:29:43 +01:00
module ActiveAdmin::AdminHelper
include ActiveAdmin::Views
def admin_polymorphic_path(resource)
self.send("admin_#{resource.class.to_s.underscore}_path", resource)
end
end