bugfix: Fix #242

This commit is contained in:
Joao Tavora
2012-05-22 17:47:32 +01:00
parent a7b78cf198
commit c38c3aaab8
3 changed files with 57 additions and 55 deletions

View File

@@ -118,8 +118,8 @@
(let* ((start (point))
(end (save-excursion
(search-forward-regexp "^\s*def\sself\.down" nil 'noerror)))
(up (aget (aget yas/rails-intelligent-migration-snippet-bits type) :up))
(down (aget (aget yas/rails-intelligent-migration-snippet-bits type) :down))
(up (cdr (assoc :up (cdr (assoc type yas/rails-intelligent-migration-snippet-bits)))))
(down (cdr (assoc :down (cdr (assoc type yas/rails-intelligent-migration-snippet-bits)))))
(snippet
(and up down start end (concat up
(buffer-substring-no-properties start end)