Sha256: 18be82e8d50ba436e49b1b94d20b45e225bb35c72062c348182b9fcbc26628d1

Contents?: true

Size: 348 Bytes

Versions: 18

Compression:

Stored size: 348 Bytes

Contents

module Landable
  module ApplicationHelper
    def method_missing(method, *args, &block)
      return main_app.send(method, *args) if method =~ /_(path|url)$/ && main_app.respond_to?(method)
      super
    end

    def respond_to?(method)
      return true if method =~ /_(path|url)$/ && main_app.respond_to?(method)
      super
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 app/helpers/landable/application_helper.rb
landable-1.13.2 app/helpers/landable/application_helper.rb
landable-1.13.1 app/helpers/landable/application_helper.rb
landable-1.12.3 app/helpers/landable/application_helper.rb
landable-1.12.2 app/helpers/landable/application_helper.rb
landable-1.12.1 app/helpers/landable/application_helper.rb
landable-1.11.1 app/helpers/landable/application_helper.rb
landable-1.11.0 app/helpers/landable/application_helper.rb
landable-1.10.0.rc2 app/helpers/landable/application_helper.rb
landable-1.10.0.rc1 app/helpers/landable/application_helper.rb
landable-1.9.2 app/helpers/landable/application_helper.rb
landable-1.9.1 app/helpers/landable/application_helper.rb
landable-1.9.0 app/helpers/landable/application_helper.rb
landable-1.9.0.rc2 app/helpers/landable/application_helper.rb
landable-1.9.0.rc1 app/helpers/landable/application_helper.rb
landable-1.8.0 app/helpers/landable/application_helper.rb
landable-1.7.1.rc1 app/helpers/landable/application_helper.rb
landable-1.7.0 app/helpers/landable/application_helper.rb