Skip to content

Commit

Permalink
Ruby 1.9 OpenStruct#respond_to? doesn't play nice with #dup
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 14, 2014
1 parent b98f0f5 commit 3f63533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blacklight/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def []=(key, value)
def [](key)
send key
end

def respond_to? method, *args
super(method, *args) || has_key?(method.to_sym)
end
end

##
Expand Down

0 comments on commit 3f63533

Please sign in to comment.