emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-ruby 6c00b018bf 142/265: inf-ruby-console-rails-p: Use


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 6c00b018bf 142/265: inf-ruby-console-rails-p: Use a stricter check
Date: Sat, 9 Jul 2022 21:59:20 -0400 (EDT)

branch: elpa/inf-ruby
commit 6c00b018bf271239a27322fbd98e46ab5e7e18b0
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    inf-ruby-console-rails-p: Use a stricter check
    
    #67 followup.
---
 inf-ruby.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 139f93299e..edbbcf590f 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -622,7 +622,10 @@ automatically."
 
 (defun inf-ruby-console-rails-p ()
   (and (file-exists-p "Gemfile.lock")
-       (inf-ruby-file-contents-match "Gemfile.lock" "^ +railties ")))
+       (inf-ruby-file-contents-match "Gemfile.lock" "^ +railties ")
+       (file-exists-p "config/application.rb")
+       (inf-ruby-file-contents-match "config/application.rb"
+                                     "\\_<Rails::Application\\_>")))
 
 ;;;###autoload
 (defun inf-ruby-console-rails (dir)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]