Skip to content

Commit

Permalink
Don't need to assign to local variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Feb 29, 2012
1 parent fbf8e39 commit 9cfd29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/views/refinery/admin/_form_actions.html.erb
Expand Up @@ -13,7 +13,7 @@
cancel_title = t('.cancel_lose_changes')
end
cancel_button_id ||= "cancel_button"
cancel_url ||= (((back = url_for(:back)).include?('javascript') or action_name =~ /^(create|update)$/) ? refinery.send(Refinery.route_for_model(f.object.class, plural_route=true)) : back)
cancel_url ||= (((back = url_for(:back)).include?('javascript') or action_name =~ /^(create|update)$/) ? refinery.send(Refinery.route_for_model(f.object.class, true)) : back)
end

continue_editing = defined?(continue_editing) ? continue_editing : (f.object.present? and f.object.persisted?)
Expand Down

1 comment on commit 9cfd29d

@parndt
Copy link
Member

@parndt parndt commented on 9cfd29d Feb 29, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, it was documentation. :trollface:

Please sign in to comment.