vrfs-774: added musicians scope

This commit is contained in:
Jonathan Kolyer 2013-11-23 01:44:13 -06:00
parent 68f6225461
commit 432e5ad59b
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ module JamRuby
validate :email_case_insensitive_uniqueness
validate :update_email_case_insensitive_uniqueness, :if => :updating_email
scope :musicians, where(:musician => true)
def user_progression_fields
@user_progression_fields ||= Set.new ["first_downloaded_client_at", "first_ran_client_at", "first_music_session_at", "first_real_music_session_at", "first_good_music_session_at", "first_certified_gear_at", "first_invited_at", "first_friended_at", "first_social_promoted_at" ]
end