Sha256: bd458113cf21a5ffa1114d8e8a377d4887783da057f232eb250e363e04249fc0
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module Admin class MenusController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) before_action { EffectiveResources.authorize!(self, :admin, :effective_pages) } include Effective::CrudController helper EffectiveMenusAdminHelper if (config = EffectivePages.layout) layout(config.kind_of?(Hash) ? config[:admin] : config) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_pages-3.0.1 | app/controllers/admin/menus_controller.rb |
effective_pages-3.0.0 | app/controllers/admin/menus_controller.rb |