Module: Wanko::Helpers::UrlHelper

Defined in:
lib/wanko/abstract_controller.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object

FIXME there has to be a better way doing this…



5
6
7
8
9
10
11
# File 'lib/wanko/abstract_controller.rb', line 5

def method_missing(meth, *args, &block)
  if main_app.routes.url_helpers.instance_methods.include? meth
    main_app.send meth, *args, &block
  else
    super
  end
end