Module: Poodle::ApplicationHelper
- Defined in:
- app/helpers/poodle/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
Can search for named routes directly in the main app, omitting the “main_app.” prefix
10
11
12
13
14
15
16
|
# File 'app/helpers/poodle/application_helper.rb', line 10
def method_missing(method, *args, &block)
if main_app_url_helper?(method)
main_app.send(method, *args)
else
super
end
end
|
Instance Method Details
#javascript_filename ⇒ Object
26
27
28
|
# File 'app/helpers/poodle/application_helper.rb', line 26
def javascript_filename
@javascript_filename || "poodle/application"
end
|
#respond_to?(method) ⇒ Boolean
18
19
20
|
# File 'app/helpers/poodle/application_helper.rb', line 18
def respond_to?(method)
main_app_url_helper?(method) or super
end
|
#stylesheet_filename ⇒ Object
22
23
24
|
# File 'app/helpers/poodle/application_helper.rb', line 22
def stylesheet_filename
@stylesheet_filename || "poodle/application"
end
|
#url_for(options = nil) ⇒ Object
4
5
6
|
# File 'app/helpers/poodle/application_helper.rb', line 4
def url_for(options = nil)
main_app.url_for(options)
end
|