Permalink
Browse files

patch until babel gets released again

  • Loading branch information...
1 parent 991f0d4 commit 532144ddaa5167a3c7e5d4b1a7270a7275b3616f @mkristian committed Mar 13, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 config/initializers/monkey_patch_babel.rb
@@ -0,0 +1,18 @@
+require 'ixtlan/babel/context'
+
+module Ixtlan
+ module Babel
+ class Context
+
+
+ def []( key )
+ if @include.include?( key )
+ self.class.new( @include.is_a?( Array ) ? {} : @include[ key ] )
+ else
+ self.class.new( @methods.is_a?( Array ) ? {} : @methods[ key ] )
+ end
+ end
+
+ end
+ end
+end

0 comments on commit 532144d

Please sign in to comment.