Module: BannerHelper

Defined in:
app/helpers/banner_helper.rb

Instance Method Summary collapse

Instance Method Details



6
7
8
9
10
11
# File 'app/helpers/banner_helper.rb', line 6

def banner_content
  @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