Skip to content

Commit

Permalink
style: break up warning into multi-line string (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwinski authored Oct 25, 2019
1 parent e2ffc2b commit ccc906b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/imgix/rails/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def initialize(path, source: nil, tag_options: {}, url_params: {}, widths: [])

def srcset(url_params: @url_params, widths: @widths)
if url_params[:w].present?
warn "Warning: srcset generation will be refactored in the next major release to provide greater flexibility and capabilities in serving responsive images. Unfortunately, these changes will require adjustments to logic that can cause unexpected behavior for users who are using this gem in its current state. Please consult this project's documentation when upgrading to better understand the expected behavior."
warn "Warning: srcset generation will be refactored in the next major release. "\
"Please consult this project\'s documentation when upgrading to better understand the expected behavior."
end
widths = widths || target_widths

Expand Down

0 comments on commit ccc906b

Please sign in to comment.