Module: Adminpanel::RouterHelper

Defined in:
app/helpers/adminpanel/router_helper.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_a_gallery?(resource) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/adminpanel/router_helper.rb', line 3

def acts_as_a_gallery?(resource)
  "adminpanel/#{resource}_controller".classify.constantize.resource_class.act_as_a_gallery?
end