summaryrefslogtreecommitdiff
path: root/app/helpers/core_helper.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-05-20 13:33:30 -0700
committerelijah <elijah@riseup.net>2014-05-20 13:33:30 -0700
commitd2f4bd40342675717c6681e4ce845c316468c8b1 (patch)
tree9ad8dbcde7c7b7f654aecbf3a3932cc9bdc213bc /app/helpers/core_helper.rb
parentb9174fdc9d9bd403d9a16650bafc4715e3dbf2d4 (diff)
better detection if price link should be shown in the footer
Diffstat (limited to 'app/helpers/core_helper.rb')
-rw-r--r--app/helpers/core_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/core_helper.rb b/app/helpers/core_helper.rb
index 4126906..46e8fa4 100644
--- a/app/helpers/core_helper.rb
+++ b/app/helpers/core_helper.rb
@@ -10,4 +10,11 @@ module CoreHelper
render 'common/home_page_buttons'
end
+ #
+ # returns true if the configured service levels contain a level with a price attached
+ #
+ def paid_service_level?
+ APP_CONFIG[:service_levels].present? && APP_CONFIG[:service_levels].detect{|k,v| v['rate'].present?}
+ end
+
end