Sha256: dfb7ce27744bf8a8e30e88de27afb4a376f1f048c86aff858ecdb07bbc776c1c

Contents?: true

Size: 382 Bytes

Versions: 16

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

module Azeroth
  class RequestHandler
    # @api private
    #
    # hadler for requests to list resources
    class Index < RequestHandler
      private

      # @private
      #
      # return a collection of the model
      #
      # @return [Enumerable<Object>]
      def resource
        controller.send(model.plural)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
azeroth-0.7.4 lib/azeroth/request_handler/index.rb
azeroth-0.7.3 lib/azeroth/request_handler/index.rb
azeroth-0.7.2 lib/azeroth/request_handler/index.rb
azeroth-0.7.1 lib/azeroth/request_handler/index.rb
azeroth-0.7.0 lib/azeroth/request_handler/index.rb
azeroth-0.6.5 lib/azeroth/request_handler/index.rb
azeroth-0.6.4 lib/azeroth/request_handler/index.rb
azeroth-0.6.3 lib/azeroth/request_handler/index.rb
azeroth-0.6.2 lib/azeroth/request_handler/index.rb
azeroth-0.6.1 lib/azeroth/request_handler/index.rb
azeroth-0.6.0 lib/azeroth/request_handler/index.rb
azeroth-0.5.0 lib/azeroth/request_handler/index.rb
azeroth-0.4.0 lib/azeroth/request_handler/index.rb
azeroth-0.3.0 lib/azeroth/request_handler/index.rb
azeroth-0.2.0 lib/azeroth/request_handler/index.rb
azeroth-0.1.0 lib/azeroth/request_handler/index.rb