Sha256: f329a53c6f064d91b6f7b0e22c6cc2e8779008634b78909599c3aba3d14f01d2

Contents?: true

Size: 200 Bytes

Versions: 7

Compression:

Stored size: 200 Bytes

Contents

class DocumentsController < BaseController
  include Restful::Base

  respond_to :html
  restful model: :document

  protected
  def secure_params
    params.require(:document).permit :name
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
restful_controller-0.2.0 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.5 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.4 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.3 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.2 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.1 test/dummy/app/controllers/documents_controller.rb
restful_controller-0.1.0 test/dummy/app/controllers/documents_controller.rb