Sha256: 4675c239d7f8b7d9848a51408e734bfab069c3067b84cd382874179de1652f0e

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

# :nodoc:
module RailsApiDoc
  module Controller
    module ResourceParams
      module DSL

        include RailsApiDoc::Controller::ResourceParams::PermittedParams # implements params_to_permit

        def resource_params
          # accepted_params for permit
          params.permit(params_to_permit)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_api_documentation-0.3.1 lib/rails_api_doc/controller/strong_params/dsl.rb
rails_api_documentation-0.3.0 lib/rails_api_doc/controller/strong_params/dsl.rb
rails_api_documentation-0.2.3 lib/rails_api_doc/controller/strong_params/dsl.rb