Sha256: a3fc8d8ca56f31eab4398fc81d6f07b0d1b871b1eda99fb0dee49ccae11b27c4

Contents?: true

Size: 297 Bytes

Versions: 26

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

class ResourceRouteBuilderController
  def initialize(id: nil, document: nil)
    @id = id
    @document_params = document
  end

  private

  attr_reader :id, :document_params

  def document
    documents.find(id)
  end

  def documents
    Document.all
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
azeroth-1.0.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.10.1 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.10.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.9.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.8.2 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.8.1 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.8.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.7.4 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.7.3 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.7.2 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.7.1 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.7.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.5 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.4 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.3 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.2 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.1 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.6.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.5.0 spec/support/app/controllers/resource_route_builder_controller.rb
azeroth-0.4.0 spec/support/app/controllers/resource_route_builder_controller.rb