Sha256: 7bef2d3b6c1aa2417c80c571f6fe21cfc0366341f74b9ea0e0d2d4e72d96e10b
Contents?: true
Size: 616 Bytes
Versions: 21
Compression:
Stored size: 616 Bytes
Contents
module Leather module ApplicationHelper 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 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 end end
Version data entries
21 entries across 21 versions & 2 rubygems