Module: ScribdFu::ClassMethods
- Defined in:
- lib/scribd_fu.rb
Instance Method Summary collapse
-
#has_ipaper_and_uses(str, opts = {:on => :save }) ⇒ Object
Load and inject ScribdFu goodies opts can be :on => :create, defaults to :on => :save.
Instance Method Details
#has_ipaper_and_uses(str, opts = {:on => :save }) ⇒ Object
Load and inject ScribdFu goodies opts can be :on => :create, defaults to :on => :save
125 126 127 128 129 130 131 132 133 |
# File 'lib/scribd_fu.rb', line 125 def has_ipaper_and_uses(str, opts = {:on => :save }) check_environment load_base_plugin(str) include InstanceMethods send("after_#{opts[:on]}", :upload_to_scribd) # This *MUST* be an after_save before_destroy :destroy_ipaper_document end |