Class: EgovUtils::Settings

Inherits:
Settingslogic
  • Object
show all
Defined in:
lib/egov_utils/settings.rb

Instance Method Summary collapse

Instance Method Details

#allow_internal_accounts?Boolean

namespace Rails.env

Returns:

  • (Boolean)


14
15
16
# File 'lib/egov_utils/settings.rb', line 14

def allow_internal_accounts?
  true
end

#allow_password_reset?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/egov_utils/settings.rb', line 22

def allow_password_reset?
  allow_internal_accounts? && allow_password_reset
end

#allow_register?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/egov_utils/settings.rb', line 18

def allow_register?
  allow_internal_accounts? && allow_register
end

#mock_resources?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/egov_utils/settings.rb', line 26

def mock_resources?
  mock_resources
end