Module: ProfileHelper

Defined in:
app/helpers/profile_helper.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Instance Method Details

#lower_limit_date_of_birthObject


14
15
16
# File 'app/helpers/profile_helper.rb', line 14

def lower_limit_date_of_birth
  125.years.ago.year
end

#upper_limit_date_of_birthObject


8
9
10
11
12
# File 'app/helpers/profile_helper.rb', line 8

def upper_limit_date_of_birth
  minimum_year = AppConfig.settings.terms.minimum_age.get
  minimum_year = minimum_year ?  minimum_year.to_i : 13
  minimum_year.years.ago.year
end