module RefileImages::Imageable

Public Instance Methods

get_url(image, size, *options) click to toggle source
# File lib/refile_images/imageable.rb, line 81
def get_url(image, size, *options)
  Refile.attachment_url(
    image,
    :file,
    image_config(image.file_filename)[size],
    *options
  )
end

Private Instance Methods

image_config(name) click to toggle source
# File lib/refile_images/imageable.rb, line 92
def image_config(name)
  self.class.image_options[name.to_sym]
end