Module: Buttercms::ApplicationHelper

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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

Used to map to the parent applications url_helpers from within the blog controller views.



4
5
6
# File 'app/helpers/buttercms/application_helper.rb', line 4

def method_missing method, *args, &block
  	method.to_s.end_with?('_path', '_url') and main_app.respond_to?(method) ? main_app.send(method, *args) : super
end