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

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/railties-7.0.8.6/lib/rails/console/helpers.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/railties-7.0.8.7/lib/rails/console/helpers.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/console/helpers.rb
railties-7.1.5.1 lib/rails/console/helpers.rb
railties-7.0.8.7 lib/rails/console/helpers.rb
railties-7.1.5 lib/rails/console/helpers.rb
railties-7.1.4.2 lib/rails/console/helpers.rb
railties-7.0.8.6 lib/rails/console/helpers.rb
railties-7.1.4.1 lib/rails/console/helpers.rb
railties-7.0.8.5 lib/rails/console/helpers.rb
railties-7.1.4 lib/rails/console/helpers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/console/helpers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.0.8.4/lib/rails/console/helpers.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/console/helpers.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/console/helpers.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/railties-7.0.5.1/lib/rails/console/helpers.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/console/helpers.rb
railties-7.1.3.4 lib/rails/console/helpers.rb
railties-7.0.8.4 lib/rails/console/helpers.rb
railties-7.1.3.2 lib/rails/console/helpers.rb