Skip to content
Browse files

Following @matthewrobertson refactoring suggestion

  • Loading branch information...
1 parent 6f534ad commit ec5e3e3022eed7a5cb502765917ae7f655278424 @lokimeyburg lokimeyburg committed Apr 18, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/ress/view_helpers.rb
View
4 lib/ress/view_helpers.rb
@@ -3,9 +3,7 @@ module Ress
module ViewHelpers
def ress_annotation_tags(options={})
- options = { :fullpath => nil }.merge(options)
- fullpath = options[:fullpath]
- fullpath ||= request.fullpath
+ fullpath = options[:fullpath] || request.fullpath
path = "#{request.host_with_port}#{fullpath}"
html = if canonical_request?

0 comments on commit ec5e3e3

Please sign in to comment.
Something went wrong with that request. Please try again.