Sha256: f4717ac2b5a73084ee04079f8e4314a46542ed08a26c51cf39f93e1975d1cfab

Contents?: true

Size: 404 Bytes

Versions: 46

Compression:

Stored size: 404 Bytes

Contents

module Satis
  module ApplicationHelper
    def sts
      @_satis_helpers_container ||= Satis::Helpers::Container.new(self)
    end

    def method_missing(method, *args, **kwargs, &block)
      if method.to_s.ends_with?('_url') || method.to_s.ends_with?('_path') && main_app.respond_to?(method)
        main_app.send(method, *args, **kwargs, &block)
      else
        super
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
satis-2.1.46 app/helpers/satis/application_helper.rb
satis-2.1.45 app/helpers/satis/application_helper.rb
satis-2.1.44 app/helpers/satis/application_helper.rb
satis-2.1.43 app/helpers/satis/application_helper.rb
satis-2.1.42 app/helpers/satis/application_helper.rb
satis-2.1.41 app/helpers/satis/application_helper.rb
satis-2.1.40 app/helpers/satis/application_helper.rb
satis-2.1.39 app/helpers/satis/application_helper.rb
satis-2.1.38 app/helpers/satis/application_helper.rb
satis-2.1.37 app/helpers/satis/application_helper.rb
satis-2.1.36 app/helpers/satis/application_helper.rb
satis-2.1.35 app/helpers/satis/application_helper.rb
satis-2.1.33 app/helpers/satis/application_helper.rb
satis-2.1.31 app/helpers/satis/application_helper.rb
satis-2.1.30 app/helpers/satis/application_helper.rb
satis-2.1.29 app/helpers/satis/application_helper.rb
satis-2.1.28 app/helpers/satis/application_helper.rb
satis-2.1.27 app/helpers/satis/application_helper.rb
satis-2.1.26 app/helpers/satis/application_helper.rb
satis-2.1.24 app/helpers/satis/application_helper.rb