Class: Imgix::Rails::ImageTag
Instance Method Summary collapse
Methods inherited from Tag
available_parameters, #initialize, parameters
Methods included from UrlHelper
Constructor Details
This class inherits a constructor from Imgix::Rails::Tag
Instance Method Details
#render ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/imgix/rails/image_tag.rb', line 4 def render @options[:srcset] = srcset @options[:sizes] ||= '100vw' @source = replace_hostname(@source) normal_opts = @options.slice!(*self.class.available_parameters) image_tag(ix_image_url(@source, @options), normal_opts) end |