Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Refactor to use settings.development? #1460

Merged
merged 1 commit into from

2 participants

@michaelavila

Any reason not to use settings.development? here?

@kytrinyx
Owner

Nope, no reason. Thanks!

@kytrinyx kytrinyx merged commit 4d954d9 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 6, 2014
  1. @michaelavila
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/app/views/auth/backdoor.erb
View
2  lib/app/views/auth/backdoor.erb
@@ -1,4 +1,4 @@
-<% if ENV['RACK_ENV'].to_sym == :development %>
+<% if settings.development? %>
<li><a href="/backdoor?id=1">be admin</a></li>
<li><a href="/backdoor?id=-1">be user</a></li>
<% end %>
Something went wrong with that request. Please try again.