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.23 app/helpers/satis/application_helper.rb
satis-2.1.22 app/helpers/satis/application_helper.rb
satis-2.1.21 app/helpers/satis/application_helper.rb
satis-2.1.20 app/helpers/satis/application_helper.rb
satis-2.1.19 app/helpers/satis/application_helper.rb
satis-2.1.18 app/helpers/satis/application_helper.rb
satis-2.1.11 app/helpers/satis/application_helper.rb
satis-2.1.10 app/helpers/satis/application_helper.rb
satis-2.1.9 app/helpers/satis/application_helper.rb
satis-2.1.8 app/helpers/satis/application_helper.rb
satis-2.1.6 app/helpers/satis/application_helper.rb
satis-2.1.5 app/helpers/satis/application_helper.rb
satis-2.1.4 app/helpers/satis/application_helper.rb
satis-2.1.3 app/helpers/satis/application_helper.rb
satis-2.1.1 app/helpers/satis/application_helper.rb
satis-2.1.0 app/helpers/satis/application_helper.rb
satis-2.0.9 app/helpers/satis/application_helper.rb
satis-2.0.8 app/helpers/satis/application_helper.rb
satis-2.0.7 app/helpers/satis/application_helper.rb
satis-1.0.75 app/helpers/satis/application_helper.rb