Sha256: d7555e653f88e01766ede489abf8480c0e472449fb20a15161e7474bfa1a8b32

Contents?: true

Size: 346 Bytes

Versions: 29

Compression:

Stored size: 346 Bytes

Contents

module RestPack::Serializer::Sortable
  extend ActiveSupport::Concern

  module ClassMethods
    attr_reader :serializable_sorting_attributes

    def can_sort_by(*attributes)
      @serializable_sorting_attributes = []
      attributes.each do |attribute|
        @serializable_sorting_attributes << attribute.to_sym
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
restpack_serializer-0.6.15 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.14 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.13 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.12 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.11 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.10 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.9 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.8 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.7 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.6 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.5 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.4 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.3 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.2 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.6.1 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.5.10 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.5.9 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.5.8 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.5.7 lib/restpack_serializer/serializable/sortable.rb
restpack_serializer-0.5.6 lib/restpack_serializer/serializable/sortable.rb