mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 15:14:33 +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)
|
def method_missing(m, *args, &block)
|
||||||
puts 'Method is missing! To use this zip_export you have to ' \
|
puts 'Method is missing! To use this zip_export you have to ' \
|
||||||
'define a method: generate_( type )_zip.'
|
'define a method: generate_( type )_zip.'
|
||||||
super
|
object.public_send(m, *args, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
def respond_to_missing?(method_name, include_private = false)
|
def respond_to_missing?(method_name, include_private = false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue