app/models/georgia/ui_association.rb in georgia-0.7.8 vs app/models/georgia/ui_association.rb in georgia-0.8.0

- old
+ new

@@ -1,17 +1,15 @@ module Georgia class UiAssociation < ActiveRecord::Base - include Georgia::Concerns::Orderable - acts_as_list scope: :page + # acts_as_list scope: :page belongs_to :revision, class_name: Georgia::Revision, foreign_key: :page_id belongs_to :widget belongs_to :ui_section - attr_accessible :position, :widget_id, :ui_section_id, :page_id - - scope :for_revision, lambda {|revision| where(page_id: revision.id)} + scope :for_revision, -> (revision) { where(page_id: revision.id) } + scope :ordered, -> { order(:position) } validate :associations protected \ No newline at end of file