Sha256: 4b4dd0d835ad5bb97442bf0056f027b90385b692a6a499add89ba7c593ad2647

Contents?: true

Size: 511 Bytes

Versions: 9

Compression:

Stored size: 511 Bytes

Contents

module Trax
  module Controller
    module Collection
      module Base
        extend ::ActiveSupport::Concern
        
        included do
          class_attribute :collection_options
          self.collection_options = ::ActiveSupport::OrderedOptions.new
        end

        module ClassMethods
          def collection_defaults(options = {})
            collection_options.merge!(options)
          end
        end

        include ::Trax::Controller::Collection::ResponseMeta
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trax_controller-1.0.0 lib/trax/controller/collection/base.rb
trax_controller-0.1.4 lib/trax/controller/collection/base.rb
trax_controller-0.1.3 lib/trax/controller/collection/base.rb
trax_controller-0.1.2 lib/trax/controller/collection/base.rb
trax_controller-0.1.1 lib/trax/controller/collection/base.rb
trax_controller-0.1.0 lib/trax/controller/collection/base.rb
trax_controller-0.0.4 lib/trax/controller/collection/base.rb
trax_controller-0.0.3 lib/trax/controller/collection/base.rb
trax_controller-0.0.2 lib/trax/controller/collection/base.rb