Sha256: 53fbe7933320253979de6382d3d7dbe6e73a6d8de2188dd303e25468f291bab0

Contents?: true

Size: 207 Bytes

Versions: 9

Compression:

Stored size: 207 Bytes

Contents

module Xing
  module Builders
    class OrderedListBuilder < ListBuilder
      def set_position(record, index)
        record.position = index if record.has_attribute?(:position)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xing-backend-1.0.0.pre.beta lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.25 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.23 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.22 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.21 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.20 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.19 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.18 lib/xing/builders/ordered_list_builder.rb
xing-backend-0.0.17 lib/xing/builders/ordered_list_builder.rb