Sha256: bfa75942c301edc7f6c58e76a590fd1161aa28e2d7531d67c0c33ecc991367f1

Contents?: true

Size: 191 Bytes

Versions: 4

Compression:

Stored size: 191 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adminpanel-1.2.12 app/helpers/adminpanel/router_helper.rb
adminpanel-1.2.11 app/helpers/adminpanel/router_helper.rb
adminpanel-1.2.10 app/helpers/adminpanel/router_helper.rb
adminpanel-1.2.9 app/helpers/adminpanel/router_helper.rb