Module: Satis::ApplicationHelper

Defined in:
app/helpers/satis/application_helper.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, **kwargs, &block) ⇒ Object



7
8
9
10
11
12
13
# File 'app/helpers/satis/application_helper.rb', line 7

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

Instance Method Details

#stsObject



3
4
5
# File 'app/helpers/satis/application_helper.rb', line 3

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