Sha256: aed09c49542f78ff979e05670c61dfe9a0eb2cc8f798af9846f3ac7a6cc63125
Contents?: true
Size: 517 Bytes
Versions: 96
Compression:
Stored size: 517 Bytes
Contents
module Rails module ConsoleMethods # Gets the helper methods available to the controller. # # This method assumes an +ApplicationController+ exists, and it extends +ActionController::Base+ def helper @helper ||= ApplicationController.helpers end # Gets a new instance of a controller object. # # This method assumes an +ApplicationController+ exists, and it extends +ActionController::Base+ def controller @controller ||= ApplicationController.new end end end
Version data entries
96 entries across 92 versions & 9 rubygems