We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca476a commit 47dad08Copy full SHA for 47dad08
lib/promptify/railtie.rb
@@ -22,7 +22,12 @@ def show_pretty_prompt
22
end
23
24
def app_name
25
- Rails.application.class.parent_module_name.underscore.dasherize
+ # ActiveSupport's `Module#parent_name` is deprecated in 6.1+.
26
+ if Rails.application.respond_to?(:parent_module_name)
27
+ Rails.application.class.parent_module_name.underscore.dasherize
28
+ else
29
+ Rails.application.class.parent_name.underscore.dasherize
30
+ end
31
32
33
def heroku_app
0 commit comments