Method: Spree::BaseHelper#method_missing

Defined in:
app/helpers/spree/base_helper.rb

#method_missing(method_name, *args, &block) ⇒ Object



145
146
147
148
149
150
151
152
# File 'app/helpers/spree/base_helper.rb', line 145

def method_missing(method_name, *args, &block)
  if image_style = image_style_from_method_name(method_name)
    define_image_method(image_style)
    self.send(method_name, *args)
  else
    super
  end
end