Skip to content

Instantly share code, notes, and snippets.

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