Sha256: 36b7a8623a884bbfe57a04a9fb09a486d8dfb226e0bd93d6e6e154ae029aa6f0

Contents?: true

Size: 307 Bytes

Versions: 50

Compression:

Stored size: 307 Bytes

Contents

module <%= controller_class.deconstantize %>
  class <%= controller_class.demodulize %> < Cmor::Core::Backend::ResourceController::Base
    def self.resource_class
      <%= resource_class %>
    end

    private

    def permitted_params
      params.require(:<%= params_name %>).permit()
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
cmor_core_backend-0.0.38.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.37.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.36.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.35.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.34.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.33.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.32.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.31.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.30.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.29.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.28.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.27.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.26.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.25.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.24.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.22.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.21.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.20.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.19.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb
cmor_core_backend-0.0.18.pre lib/generators/cmor/core/backend/resource_controller/templates/resource_controller.rb