jmburges/wicked_pdf — comment on commit 8ffbed4dd1e0deb51b91595fe871e7643b972f6e
File:  line 0
By unixmonkey:

This commit is broken - It breaks the word Rails into "Rail s", and this much logic should be pushed into a separate method. Perhaps it would work better to define some methods like so:

def in_development_mode?
(defined?(Rails) && Rails.env == 'development') ||
(RAILS_ENV && RAILS_ENV == 'development')
end

def print_command(cmd)
p "*"*15 + cmd + "*"*15
end

and change the line to:

print_command(command) if in_development_mode?

I would gladly pull something like that in.