Skip to content

Commit

Permalink
Ruby 1.8.7 compat: work around broken DelegateClass#respond_to?
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed May 31, 2008
1 parent 3a97750 commit 7391f77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions actionpack/lib/action_controller/cgi_ext/cookie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ def to_s
buf
end

# FIXME: work around broken 1.8.7 DelegateClass#respond_to?
def respond_to?(method, include_private = false)
return true if super(method)
return __getobj__.respond_to?(method, include_private)
end

# Parses a raw cookie string into a hash of <tt>cookie-name => cookie-object</tt>
# pairs.
#
Expand Down

0 comments on commit 7391f77

Please sign in to comment.