Sha256: 6ff4dd9839582452676ae5e403a30518777ef0b1ba0005623648626156feb467

Contents?: true

Size: 354 Bytes

Versions: 2

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module Importo
  module ApplicationHelper
    def respond_to_missing?(method)
      method.ends_with?('_url') || method.ends_with?('_path')
    end

    def method_missing(method, *args, &block)
      if main_app.respond_to?(method)
        main_app.send(method, *args)
      else
        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-2.0.5 app/helpers/importo/application_helper.rb
importo-2.0.4 app/helpers/importo/application_helper.rb