module Gifted::ViewHelpers
Public Instance Methods
controller()
click to toggle source
# File lib/gifted/view_helpers.rb, line 14 def controller @controller ||= Gifted::ViewContext.current.instance_variable_get(:@_controller) end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/gifted/view_helpers.rb, line 5 def method_missing(method_name, *args, &block) view_context = Gifted::ViewContext.current view_context&.respond_to?(method_name) ? view_context.send(method_name, *args, &block) : super end
respond_to_missing?(method_name, *args)
click to toggle source
Calls superclass method
# File lib/gifted/view_helpers.rb, line 10 def respond_to_missing?(method_name, *args) Gifted::ViewContext.current.respond_to?(method_name) || super end