Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… than a ternary here.
  • Loading branch information...
commit fe8e0022d56148d892789c59e8bcb12e201b980a 1 parent a82a32d
@parndt parndt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/app/views/admin/_javascripts.html.erb
View
2  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' -%>
Please sign in to comment.
Something went wrong with that request. Please try again.