Sha256: d1e6f902e14b3fc28fe4daac43df3c860725cf8bdc6486af4973f8e53a7c15eb

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

module Admin
  class <%= resource.class_name.sub('Effective::', '') %>Controller < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :<%= effective_gem_name %>) }

    include Effective::CrudController

    private

    def permitted_params
      params.require(:<%= resource.resource_name %>).permit!
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_developer-0.6.15 lib/scaffolds/admin_effective/controllers/controller.rb