Permalink
Browse files

Moved options ternary operator to a more proper location.

  • Loading branch information...
1 parent dc4497b commit e748f48eb008eea1e1e3933ead317f1535ee340f Anton Lindqvist committed Aug 30, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/iphone_helpers.rb
View
4 lib/iphone_helpers.rb
@@ -1,7 +1,7 @@
module ::ActionView::Helpers::TagHelper
def iphone(key, *options)
- options = options.extract_options!
- tagname, attributes = send("iphone_#{key}", options || {})
+ options = options.extract_options! || {}
+ tagname, attributes = send("iphone_#{key}", options)
tag(tagname, attributes)
end

0 comments on commit e748f48

Please sign in to comment.