lib/papercrop/model_extension.rb
# Uses method missing to responding the model callback
Uses method missing to responding the model callback
Uses method missing to responding the model callback
def method_missing(method, *args)
        if method.to_s =~ Papercrop::RegExp::CALLBACK
          reprocess_cropped_attachment(
            method.to_s.scan(Papercrop::RegExp::CALLBACK).flatten.first.to_sym
          )
        else
          super
        end
      end
def method_missing ( method , * args ) if method . to_s =~ Papercrop :: RegExp :: CALLBACK reprocess_cropped_attachment ( method . to_s . scan ( Papercrop :: RegExp :: CALLBACK ) . flatten . first . to_sym ) else super end end
Uses method missing to responding the model callback
Uses method missing to responding the model callback
method
<not_specific>
args
<not_specific>