app/models/user.rb
# Return the conditions for a user to be 'mostly' active.
Return the conditions for a user to be 'mostly' active.
Return the conditions for a user to be ' mostly ' active .
def conditions_for_mostly_active
      [%(enabled = ? AND activation_code IS NULL AND
         activated_at IS NOT NULL AND reactivation_code IS NULL AND
         (last_login_at IS NOT NULL AND last_login_at >= ?)),
       true, TIME_AGO_FOR_MOSTLY_ACTIVE]
    end
def conditions_for_mostly_active [ %(enabled = ? AND activation_code IS NULL AND
         activated_at IS NOT NULL AND reactivation_code IS NULL AND
         (last_login_at IS NOT NULL AND last_login_at >= ?)) , true , TIME_AGO_FOR_MOSTLY_ACTIVE ] end
Return the conditions for a user to be 'mostly' active.
Return the conditions for a user to be ' mostly ' active .