Skip to content

Commit

Permalink
We are not guaranteed that the request has a format. I need to start …
Browse files Browse the repository at this point in the history
…writing tests up in here.
  • Loading branch information
Austin Fonacier committed Apr 24, 2009
1 parent 3168f24 commit 2738111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tank_engine_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def set_iphone_format
end

def is_iphone_format?
request.format.to_sym == self.class.iphone_request_format
request.format && request.format.to_sym == self.class.iphone_request_format
end

def is_iphone_request?
Expand Down

0 comments on commit 2738111

Please sign in to comment.