Module: MailyHerald::TokensHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/helpers/maily_herald/tokens_helper.rb
Overview
This helper helps overwriting Maily TokensController and/or views in main app
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
Cover *_url and *_path generated methods.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
Cover *_url and *_path generated methods
7 8 9 10 11 |
# File 'app/helpers/maily_herald/tokens_helper.rb', line 7 def method_missing(method, *args, &block) method.to_s.end_with?("_url", "_path") ? main_app.send(method, *args, &block) : (raise NoMethodError) rescue NoMethodError super end |