app/helpers/enlightenment/application_helper.rb in enlightenment-0.0.1.pre.3 vs app/helpers/enlightenment/application_helper.rb in enlightenment-0.0.1.pre.4
- old
+ new
@@ -1,4 +1,11 @@
module Enlightenment
module ApplicationHelper
+ def method_missing(method, *args, &block)
+ enlightenment.send(method, *args, &block)
+ rescue NoMethodError
+ main_app.send(method, *args, &block)
+ rescue NoMethodError
+ super
+ end
end
end