Ruby 1.9.1 Fixes
Some more fixes to deal with Ruby 1.9.1.
This commit is contained in:
parent
063a8ca5a7
commit
f7044ecbb4
4 changed files with 11 additions and 6 deletions
|
@ -269,3 +269,8 @@ module Instiki
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Monkey patch, to make Hash#key work in Ruby 1.8
|
||||
class Hash
|
||||
alias_method(:key, :index) unless method_defined?(:key)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue