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