Skip to content

Commit

Permalink
Define login as login? only if login is not defined. Makes more sense…
Browse files Browse the repository at this point in the history
… than a ternary here.
  • Loading branch information
parndt committed Mar 28, 2011
1 parent a82a32d commit fe8e002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/views/admin/_javascripts.html.erb
Original file line number Diff line number Diff line change
@@ -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' -%>
Expand Down

0 comments on commit fe8e002

Please sign in to comment.