Sha256: 040bd75ca4662e5bda844f86e6587d7e706fb5e03edc7e9d638aa714a9af2f59

Contents?: true

Size: 584 Bytes

Versions: 49

Compression:

Stored size: 584 Bytes

Contents

module <%= controller_class.deconstantize %>
  class <%= controller_class.demodulize %> < <%= current_engine.chomp('::Engine') %>::Configuration.base_controller.constantize
    include Rao::ResourcesController::RestActionsConcern
    include Rao::ResourcesController::ResourcesConcern
    include Rao::ResourcesController::RestResourceUrlsConcern
    include Rao::ResourcesController::ResourceInflectionsConcern

    def self.resource_class
      <%= resource_class %>
    end

    private

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

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
cmor_core_frontend-0.0.16.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.15.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.14.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.13.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.12.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.11.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.10.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.9.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb
cmor_core_frontend-0.0.8.pre lib/generators/cmor/core/frontend/resources_controller/templates/resources_controller.rb