blob: 46e8fa4e63d96e4de3f8d5bbcd7f0270c1716533 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# Misc. helpers needed throughout.
#
module CoreHelper
#
# insert common buttons (download, login, etc)
#
def home_page_buttons
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
|