Module: Imgix::Rails::ViewHelper
- Includes:
- UrlHelper
- Defined in:
- lib/imgix/rails/view_helper.rb
Instance Method Summary collapse
- #ix_image_tag(source, options = {}) ⇒ Object
- #ix_picture_tag(source, picture_tag_options:, imgix_default_options:, breakpoints:) ⇒ Object
Methods included from UrlHelper
Instance Method Details
#ix_image_tag(source, options = {}) ⇒ Object
10 11 12 |
# File 'lib/imgix/rails/view_helper.rb', line 10 def ix_image_tag(source, ={}) Imgix::Rails::ImageTag.new(source, ).render end |
#ix_picture_tag(source, picture_tag_options:, imgix_default_options:, breakpoints:) ⇒ Object
14 15 16 |
# File 'lib/imgix/rails/view_helper.rb', line 14 def ix_picture_tag(source, picture_tag_options:, imgix_default_options:, breakpoints:) Imgix::Rails::PictureTag.new(source, , , breakpoints).render end |