class Lightspeed::Images

Public Instance Methods

base_path() click to toggle source
Calls superclass method Lightspeed::Collection#base_path
# File lib/lightspeed/images.rb, line 9
def base_path
  if context.is_a?(Lightspeed::Item) ||
     context.is_a?(Lightspeed::ItemMatrix)
    "#{context.base_path}/#{resource_name}"
  else
    super
  end
end