app/helpers/engineyard_theme_helper.rb in engineyard-theme-1.0.5 vs app/helpers/engineyard_theme_helper.rb in engineyard-theme-2.2.0

- old
+ new

@@ -1,15 +1,23 @@ module EngineyardThemeHelper - def header(&block) + def header(*args,&block) + add_navigation = args[0] || 'true' + add_js = args[1] || 'true' additional_header = block_given? ? capture(&block) : '' render :partial => 'engineyard-theme/header', :locals => { - :additional_header => additional_header + :additional_header => additional_header, + :add_navigation => add_navigation, + :add_js => add_js } end - def footer(&block) + def footer(*args,&block) additional_footer = block_given? ? capture(&block) : '' + add_navigation = args[0] || 'true' + add_js = args[1] || 'true' render :partial => 'engineyard-theme/footer', :locals => { - :additional_footer => additional_footer + :additional_footer => additional_footer, + :add_navigation => add_navigation, + :add_js => add_js } end end \ No newline at end of file