fix method_missing again

This commit is contained in:
zmagod 2017-04-13 14:34:58 +02:00
parent 0534bce1ed
commit a6183af63d

View file

@ -67,7 +67,7 @@ class ZipExport < ActiveRecord::Base
def method_missing(m, *args, &block)
puts 'Method is missing! To use this zip_export you have to ' \
'define a method: generate_( type )_zip.'
super
object.public_send(m, *args, &block)
end
def respond_to_missing?(method_name, include_private = false)