Sha256: 0ebf0bf52111b0e5f4b5667289480733160e602cc5ea80ec9132a0a6f36d7d8b

Contents?: true

Size: 417 Bytes

Versions: 17

Compression:

Stored size: 417 Bytes

Contents

module Admin
  class <%= resource.class_name.sub('Effective::', '') %>sController < 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

17 entries across 17 versions & 1 rubygems

Version Path
effective_developer-0.8.5 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.8.4 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.8.3 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.8.2 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.8.1 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.8.0 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.8 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.7 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.6 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.5 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.4 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.3 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.2 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.1 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.7.0 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.6.17 lib/scaffolds/admin_effective/controllers/controller.rb
effective_developer-0.6.16 lib/scaffolds/admin_effective/controllers/controller.rb