Module: HasImage::ModelClassMethods

Defined in:
lib/has_image.rb

Instance Method Summary collapse

Instance Method Details

#from_partitioned_path(path) ⇒ Object



317
318
319
# File 'lib/has_image.rb', line 317

def from_partitioned_path(path)
  find HasImage::Storage.id_from_path(path)
end

#thumbnailsObject

Get the hash of thumbnails set by the options specified when invoking HasImage::ClassMethods#has_image.



313
314
315
# File 'lib/has_image.rb', line 313

def thumbnails
  has_image_options[:thumbnails]
end