Sha256: b42c4496bdb2c2e16f959c0011b531460b9e4e3c33e8c2c5a0f1ef901139af44

Contents?: true

Size: 306 Bytes

Versions: 9

Compression:

Stored size: 306 Bytes

Contents

require 'active_support/concern'

module Georgia
  module Concerns
    module Orderable
      extend ActiveSupport::Concern

      included do

        acts_as_list
        attr_accessible :position

        scope :ordered, order(:position)

      end

      module ClassMethods
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
georgia-0.7.8 app/models/georgia/concerns/orderable.rb
georgia-0.7.7 app/models/georgia/concerns/orderable.rb
georgia-0.7.6 app/models/georgia/concerns/orderable.rb
georgia-0.7.5 app/models/georgia/concerns/orderable.rb
georgia-0.7.4 app/models/georgia/concerns/orderable.rb
georgia-0.7.3 app/models/georgia/concerns/orderable.rb
georgia-0.7.2 app/models/georgia/concerns/orderable.rb
georgia-0.7.1 app/models/georgia/concerns/orderable.rb
georgia-0.7.0 app/models/georgia/concerns/orderable.rb