app/models/elabs/license.rb in elabs-2.0.0.pre vs app/models/elabs/license.rb in elabs-2.0.0
- old
+ new
@@ -9,7 +9,9 @@
has_many :albums
has_many :articles
has_many :notes
has_many :projects
has_many :uploads
+
+ scope :for_list, -> { order(:name).pluck(:name, :id) }
end
end