module GitHistoryRails::ApplicationHelper

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/git_history_rails.rb, line 5
def method_missing method, *args, &block
  puts "LOOKING FOR ROUTES #{method}"
  if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
    if main_app.respond_to?(method)
      main_app.send(method, *args)
    else
      super
    end
  else
    super
  end
end
respond_to?(method) click to toggle source
Calls superclass method
# File lib/git_history_rails.rb, line 18
def respond_to?(method)
  if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
    if main_app.respond_to?(method)
      true
    else
      super
    end
  else
    super
  end
end