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

Version Path
leather2-3.5.3 app/helpers/leather/application_helper.rb
leather-3.5.2 app/helpers/leather/application_helper.rb
leather-3.5.1 app/helpers/leather/application_helper.rb
leather-3.5.0 app/helpers/leather/application_helper.rb
leather-3.3.5 app/helpers/leather/application_helper.rb
leather-3.3.4.1 app/helpers/leather/application_helper.rb
leather-3.3.4 app/helpers/leather/application_helper.rb
leather-3.3.3.4 app/helpers/leather/application_helper.rb
leather-3.3.3.3 app/helpers/leather/application_helper.rb
leather-3.3.3.2 app/helpers/leather/application_helper.rb
leather-3.3.3.1 app/helpers/leather/application_helper.rb
leather-3.3.2 app/helpers/leather/application_helper.rb
leather-3.3.1 app/helpers/leather/application_helper.rb
leather-3.3.0 app/helpers/leather/application_helper.rb
leather-3.2.0 app/helpers/leather/application_helper.rb
leather-0.2.29 app/helpers/leather/application_helper.rb
leather-0.2.27 app/helpers/leather/application_helper.rb
leather-0.2.26 app/helpers/leather/application_helper.rb
leather-0.2.25 app/helpers/leather/application_helper.rb
leather-0.2.24 app/helpers/leather/application_helper.rb