Class: AttachmentMagick::MongoidImage

Inherits:
Object
  • Object
show all
Includes:
AutoHtmlFor, Mongoid::Document
Defined in:
app/models/attachment_magick/mongoid_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_nameObject

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

#imageableObject



32
33
34
# File 'app/models/attachment_magick/mongoid_image.rb', line 32

def imageable
  self._parent
end

#is_flash?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'app/models/attachment_magick/mongoid_image.rb', line 37

def is_flash?
  self.content_type =~ /flash/ ? true : false
end