method
raise_deprecation_warning
v7.2.3 -
Show latest stable
- Class:
Rails::ConsoleMethods
raise_deprecation_warning()public
No documentation available.
# 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
end
end