class method self.raise_deprecation_warning

Ruby on Rails 7.2.3

Since v7.2.3 Last seen in v7.2.3

Signature

self.raise_deprecation_warning()

No documentation comment.

Source
# File railties/lib/rails/console/methods.rb, line 15
    def self.raise_deprecation_warning
      Rails.deprecator.warn(<<~MSG, caller_locations(2..2))
        Extending Rails console through `Rails::ConsoleMethods` is deprecated and will be removed in Rails 8.0.
        Please directly use IRB's extension API to add new commands or helpers to the console.
        For more details, please visit: https://github.com/ruby/irb/blob/master/EXTEND_IRB.md
      MSG
    end

Defined in railties/lib/rails/console/methods.rb line 15 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::ConsoleMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close