Module: BannerHelper
- Defined in:
- app/helpers/banner_helper.rb
Instance Method Summary collapse
Instance Method Details
#banner_content ⇒ Object
6 7 8 9 10 11 |
# File 'app/helpers/banner_helper.rb', line 6 def @yaml_data = YAML.load_file("config/banner.yml") return false if @yaml_data[Rails.env].nil? @banner_title = @yaml_data[Rails.env]["title"] @banner_body = @yaml_data[Rails.env]["body"] end |