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