Method: Kadim::ApplicationHelper#method_missing

Defined in:
app/helpers/kadim/application_helper.rb

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



33
34
35
36
37
38
39
40
41
42
43
# File 'app/helpers/kadim/application_helper.rb', line 33

def method_missing(method, *args, &block)
  if method.to_s.end_with?("_path", "_url")
    if main_app.respond_to?(method)
      main_app.send(method, *args)
    else
      super
    end
  else
    super
  end
end