Module: Imgix::Rails::UrlHelper

Included in:
Tag, ViewHelper
Defined in:
lib/imgix/rails/url_helper.rb

Instance Method Summary collapse

Instance Method Details

#ix_image_url(source, options = {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/imgix/rails/url_helper.rb', line 6

def ix_image_url(source, options={})
  validate_configuration!

  source = replace_hostname(source)

  client.path(source).to_url(options).html_safe
end