aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prikhodko <prikha@gmail.com>2014-03-03 16:42:04 +0400
committerSergey Prikhodko <prikha@gmail.com>2014-03-03 16:42:04 +0400
commit28c0177524d68844713086ea1343718916ad97a8 (patch)
tree5ab37aec8294fcb40ca31c342e222726c51dd8d0
parent51ff88cf6ae72c8c09145b0c0cba1e154d3068f1 (diff)
downloadrails-28c0177524d68844713086ea1343718916ad97a8.tar.gz
rails-28c0177524d68844713086ea1343718916ad97a8.tar.bz2
rails-28c0177524d68844713086ea1343718916ad97a8.zip
fix indentations
-rw-r--r--actionview/lib/action_view/helpers/form_tag_helper.rb7
1 files 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
# # => <button data-disable-with="Please wait..." name="button" type="submit">Checkout</button>
#
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.