This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dam_image_tag asset, options = {} | |
width = options[:width] || 300 | |
height = options[:height] || nil | |
image_tag dam_state_typical_url(asset), :width => width, :height => height | |
end | |
def dam_state_typical_url model, options = {} | |
use_region_fallback = model.is_a?(TravelReport) && model.region_code |