module Guard::Notifier

def image_path(image)

Returns:
  • (String) - the image path

Parameters:
  • image (Symbol, String) -- the image symbol or path to an image
def image_path(image)
  case image
  when :failed
    images_path.join('failed.png').to_s
  when :pending
    images_path.join('pending.png').to_s
  when :success
    images_path.join('success.png').to_s
  else
    image
  end
end