class Preseason::Recipe::IE8
Public Instance Methods
prepare()
click to toggle source
# File lib/preseason/recipe/ie8.rb, line 2 def prepare return unless config.ie8.enabled? copy_js insert_into_layout end
Private Instance Methods
copy_js()
click to toggle source
# File lib/preseason/recipe/ie8.rb, line 11 def copy_js mirror_file 'app/assets/javascripts/ie8.coffee' end
insert_into_layout()
click to toggle source
# File lib/preseason/recipe/ie8.rb, line 15 def insert_into_layout insert_into_file 'app/views/layouts/application.html.erb', "\n\n <!--[if IE 8]>\n <%= javascript_include_tag 'ie8' %>\n <![endif]-->", :after => /^ \<\%\= yield \%\>$/ end