Module: ImageHelperExtension
- Included in:
- SportDbAdmin::ImageHelper
- Defined in:
- lib/sportweb/application.rb
Overview
monkey patch image helpers
Instance Method Summary collapse
Instance Method Details
#flag_for_country(country) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/sportweb/application.rb', line 25 def flag_for_country( country ) puts "*** image_helper/flag_for_country #{country.key}" if country.key == 'eng' ## quick fix/hack: eng=>en puts "*** use eng quick fix" # image_tag( "flags/24x24/en.png" ) '' else ## super # old_flag_for_country( country ) '' end end |
#logo_for_team(team) ⇒ Object
19 20 21 22 23 |
# File 'lib/sportweb/application.rb', line 19 def logo_for_team( team ) puts "*** image_helper/logo_for_team #{team.key}" ## super # old_logo_for_team( team ) '' end |