Class: AttachmentMagick::MongoidImage
- Inherits:
-
Object
- Object
- AttachmentMagick::MongoidImage
- Includes:
- AutoHtmlFor, Mongoid::Document
- Defined in:
- app/models/attachment_magick/mongoid_image.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
Instance Method Summary collapse
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
11 12 13 |
# File 'app/models/attachment_magick/mongoid_image.rb', line 11 def file_name @file_name end |
Instance Method Details
#imageable ⇒ Object
32 33 34 |
# File 'app/models/attachment_magick/mongoid_image.rb', line 32 def imageable self._parent end |
#is_flash? ⇒ Boolean
37 38 39 |
# File 'app/models/attachment_magick/mongoid_image.rb', line 37 def is_flash? self.content_type =~ /flash/ ? true : false end |