Module: HasImage::ModelClassMethods

Defined in:
lib/has_image.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) from_partitioned_path(path)



333
334
335
# File 'lib/has_image.rb', line 333

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

- (Object) thumbnails

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



329
330
331
# File 'lib/has_image.rb', line 329

def thumbnails
  has_image_options[:thumbnails]
end