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-1.0.74 app/helpers/satis/application_helper.rb
satis-1.0.70 app/helpers/satis/application_helper.rb
satis-1.0.69 app/helpers/satis/application_helper.rb
satis-1.0.68 app/helpers/satis/application_helper.rb
satis-1.0.67 app/helpers/satis/application_helper.rb
satis-1.0.66 app/helpers/satis/application_helper.rb