Skip to content

Commit

Permalink
This allows for users to set the environment as a string , often code…
Browse files Browse the repository at this point in the history
… uses string environments and not symbols , this would wourk just as well with either
  • Loading branch information
dhananjaysathe committed Jan 20, 2015
1 parent 5ef43ed commit eaa7453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/assetpack/helpers.rb
Expand Up @@ -43,7 +43,7 @@ def show_one_asset_pack(type, name, options={})
pack = settings.assets.packages["#{name}.#{type}"]
return "" unless pack

if settings.environment == :production
if settings.environment.to_sym == :production
pack.to_production_html request.script_name, options
else
pack.to_development_html request.script_name, options
Expand Down

0 comments on commit eaa7453

Please sign in to comment.