Skip to content

Commit

Permalink
Merge pull request #21 from okor/master
Browse files Browse the repository at this point in the history
Adds the debug option to thumbor urls
  • Loading branch information
guilhermef committed Jan 29, 2019
2 parents 8d5ec0e + 7768352 commit b32312f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thumbor/cascade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Cascade
:flop, :halign, :valign,
:smart, :fit_in, :adaptive_fit_in,
:full_fit_in, :adaptive_full_fit_in,
:trim]
:trim, :debug]

extend Forwardable

Expand Down
4 changes: 4 additions & 0 deletions lib/thumbor/crypto_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def url_for(options, include_hash = true)

url_parts = Array.new

if options[:debug]
url_parts.push('debug')
end

if options[:trim]
trim_options = ['trim']
trim_options << options[:trim] unless options[:trim] == true or options[:trim][0] == true
Expand Down

0 comments on commit b32312f

Please sign in to comment.