lib/gifted/view_helpers.rb in gifted-0.1.0 vs lib/gifted/view_helpers.rb in gifted-0.2.0

- old
+ new

@@ -8,7 +8,11 @@ end def respond_to_missing?(method_name, *args) Gifted::ViewContext.current.respond_to?(method_name) || super end + + def controller + @controller ||= Gifted::ViewContext.current.instance_variable_get(:@_controller) + end end end