Sha256: 4e7b3e3dced71bfd22674cde7c9be35a968a3de1498f38635fecbe8dcadd3ce8
Contents?: true
Size: 505 Bytes
Versions: 55
Compression:
Stored size: 505 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 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
55 entries across 55 versions & 4 rubygems