Permalink
Browse files

Define login as login? only if login is not defined. Makes more sense…

… than a ternary here.
  • Loading branch information...
1 parent a82a32d commit fe8e0022d56148d892789c59e8bcb12e201b980a @parndt parndt committed Mar 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/views/admin/_javascripts.html.erb
@@ -1,6 +1,6 @@
<%
js_caching = Rails.root.writable? and RefinerySetting.find_or_set(:use_resource_caching, true)
- login = defined?(login) ? login : login?
+ login = login? unless defined?(login)
-%>
<%= yield :before_javascript_libraries -%>
<%= javascript_include_tag 'refinery/i18n' -%>

0 comments on commit fe8e002

Please sign in to comment.