From 28c0177524d68844713086ea1343718916ad97a8 Mon Sep 17 00:00:00 2001 From: Sergey Prikhodko Date: Mon, 3 Mar 2014 16:42:04 +0400 Subject: fix indentations --- actionview/lib/action_view/helpers/form_tag_helper.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index 9f2eb49f72..5136e4dda4 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -469,10 +469,9 @@ module ActionView # # => # def button_tag(content_or_options = nil, options = nil, &block) - options = content_or_options.is_a?(Hash) ? content_or_options : options - options = button_tag_options_with_defaults(options) - content_tag :button, content_or_options || 'Button', options, &block - end + options = content_or_options.is_a?(Hash) ? content_or_options : options + options = button_tag_options_with_defaults(options) + content_tag :button, content_or_options || 'Button', options, &block end # Displays an image which when clicked will submit the form. -- cgit v1.2.3