mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-03 05:29:46 +08:00
fix method_missing again
This commit is contained in:
parent
0534bce1ed
commit
a6183af63d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue