Skip to content

Commit

Permalink
References #86 Not the real solution but at least
Browse files Browse the repository at this point in the history
we should start with making sure that abstractor
subjects are displayed in order of creation.
  • Loading branch information
mgurley committed Feb 25, 2015
1 parent 4f42a74 commit ad5f428
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
= link_to 'Add group', Abstractor::UserInterface.abstractor_relative_path(abstractor.abstractor_abstraction_groups_path(about_id: about.id, about_type: about.class.name, abstractor_subject_group_id: abstractor_subject_group.id)), method: :post, class: "icon_link add_link", remote: true

.clear
- ungrouped_subjects = Abstractor::AbstractorSubject.not_deleted.includes(:abstractor_subject_group_member).where(:subject_type => about.class.to_s, :abstractor_subject_group_members => {:id => nil})
- ungrouped_subjects = Abstractor::AbstractorSubject.not_deleted.includes(:abstractor_subject_group_member).where(:subject_type => about.class.to_s, :abstractor_subject_group_members => {:id => nil}).order('abstractor_subjects.id')
- if ungrouped_subjects.any?
%fieldset
.column-3
Expand Down

0 comments on commit ad5f428

Please sign in to comment.