Module: ScribdFu::AttachmentFu::ClassMethods
- Defined in:
- lib/attachment_fu/methods.rb
Instance Method Summary collapse
-
#validates_as_scribd_document ⇒ Object
Adds validations to the current model to check that its attachment is scribdable.
Instance Method Details
#validates_as_scribd_document ⇒ Object
Adds validations to the current model to check that its attachment is scribdable.
8 9 10 11 |
# File 'lib/attachment_fu/methods.rb', line 8 def validates_as_scribd_document validates_presence_of :scribd_id, :scribd_access_key, :content_type validate :scribdable? end |