public
Description: Tomtt's version of the minor mode for editing RubyOnRails code in Emacs
Homepage: http://rubyforge.org/projects/emacs-rails/
Clone URL: git://github.com/tomtt/emacs-rails.git
rails-core.el (rails-core:observer-p, rails-core:mailer-p): fixed regexp.


git-svn-id: svn+ssh://rubyforge.org/var/svn/emacs-rails/trunk@224 
cc5033d0-740f-0410-afc7-949910e492f2
dimaexe (author)
Fri Feb 15 11:33:10 -0800 2008
commit  4b6fba1627d2256a99688082113da72d04e240f2
tree    095797e7879e2a4112f1e1911d80f3014b578e1f
parent  52c036d1d2c13716b6c5762b9add56de0503b630
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+2008-02-15 Dmitry Galinsky <dima.exe@gmail.com>
0
+
0
+ * rails-core.el (rails-core:observer-p, rails-core:mailer-p): fixed regexp.
0
+
0
 2008-02-11 Dmitry Galinsky <dima.exe@gmail.com>
0
 
0
   * rails-snippets-feature.el (rails-snippets-feature:fixture)
...
316
317
318
319
 
320
321
322
323
324
 
325
326
 
327
328
329
...
316
317
318
 
319
320
321
322
323
 
324
325
326
327
328
329
330
0
@@ -316,14 +316,15 @@ CONTROLLER."
0
 ;;;;;;;;;; Functions that return collection of Rails objects ;;;;;;;;;;
0
 (defun rails-core:observer-p (name)
0
   (when name
0
- (if (string-match "\\(Observer\\|_observer\\(\\.rb\\)?\\)$" name)
0
+ (if (string-match "\\(Observer\\|_observer\\)\\(\\.rb\\)?$" name)
0
         t nil)))
0
 
0
 (defun rails-core:mailer-p (name)
0
   (when name
0
- (if (string-match "\\(Mailer\\|Notifier\\|_mailer\\|_notifier\\(\\.rb\\)?\\)$" name)
0
+ (if (string-match "\\(Mailer\\|Notifier\\|_mailer\\|_notifier\\)\\(\\.rb\\)?$" name)
0
         t nil)))
0
 
0
+
0
 (defun rails-core:controllers (&optional cut-contoller-suffix)
0
   "Return a list of Rails controllers. Remove the '_controller'
0
 suffix if CUT-CONTOLLER-SUFFIX is non nil."

Comments

    No one has commented yet.