Skip to content

Commit

Permalink
Merge pull request #109 from bitaculous/deprecation_warning_rails_6
Browse files Browse the repository at this point in the history
Use `module_parent_name` instead of `parent_name` for Rails 6.
  • Loading branch information
rf- authored Dec 29, 2018
2 parents fb9e07c + fcae7f1 commit 3fad595
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pry-rails/prompt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ def formatted_env
end

def project_name
Rails.application.class.parent_name.underscore
if Rails::VERSION::MAJOR == 6
Rails.application.class.module_parent_name.underscore
else
Rails.application.class.parent_name.underscore
end
end
end
end
Expand Down

0 comments on commit 3fad595

Please sign in to comment.