Module: ScribdFu::ClassMethods
- Defined in:
- lib/scribd_fu.rb
Class Method Summary collapse
-
.extended(base) ⇒ Object
Sets up the scribd_options accessor, a before_destroy hook to ensure the deletion of associated Scribd documents, and an after_save hook to upload to scribd.
Class Method Details
.extended(base) ⇒ Object
Sets up the scribd_options accessor, a before_destroy hook to ensure the deletion of associated Scribd documents, and an after_save hook to upload to scribd.
101 102 103 104 105 106 |
# File 'lib/scribd_fu.rb', line 101 def self.extended(base) base.class_inheritable_accessor :scribd_options base.before_destroy :destroy_scribd_documents base.before_validation :upload_to_scribd end |