Sha256: 1660f552a620901006d7412abe33a50180e94a95407eb539097265da7110e5b9

Contents?: true

Size: 265 Bytes

Versions: 11

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

class RequestHandlerController < ActionController::Base
  def document_params
    params.require(:document).permit(:name)
  end

  def documents
    Document.all
  end

  def document
    documents.find(params.require(:id))
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
azeroth-0.6.5 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.6.4 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.6.3 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.6.2 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.6.1 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.6.0 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.5.0 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.4.0 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.3.0 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.2.0 spec/support/app/controllers/request_handler_controller.rb
azeroth-0.1.0 spec/support/app/controllers/request_handler_controller.rb