lib/wco/profile.rb in ish_models-3.1.0.13 vs lib/wco/profile.rb in ish_models-3.1.0.14

- old
+ new

@@ -10,6 +10,10 @@ field :per_page, type: :integer, default: 25 belongs_to :leadset, class_name: 'Wco::Leadset', inverse_of: :profile, optional: true + def self.list + all.map { |p| [ p.email, p.id ] } + end + end