public
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://groups.google.com/group/rubyonrails-textmate
Clone URL: git://github.com/drnic/ruby-on-rails-tmbundle.git
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
commit to fix broken dcommit process


git-svn-id: 
http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle
@9953 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
drnic (author)
Wed Jun 18 17:28:59 -0700 2008
commit  d77ec9f9fc48ee0086efef50ff6e334541231dab
tree    49966bb7a8d0fb2c3e5cab6da9b356e306d7d5e9
parent  37deb3d993ab884cbc5b4c8319a2f5abd942c0e0
...
52
53
54
 
 
 
 
 
55
56
57
...
74
75
76
77
 
78
79
...
52
53
54
55
56
57
58
59
60
61
62
...
79
80
81
 
82
83
84
0
@@ -52,6 +52,11 @@ def filter_fixtures(fixtures, filter)
0
   end
0
 end
0
 
0
+# 'foo' => ':foo' and 'foo-bar' => ':"foo-bar"'
0
+def symbolize_name(name)
0
+ name.to_sym.inspect
0
+end
0
+
0
 filetype, start_line_gap, ref, filter = parse_line
0
 filter = "" if filter.nil?
0
 foreign_fixtures = load_referenced_fixture_file(ref).keys
0
@@ -74,6 +79,6 @@ else
0
   if filetype == :fixture
0
     print "#{start_line_gap}#{ref}: #{selected_fixture}"
0
   else
0
- print "#{start_line_gap}@#{Inflector.singularize ref} = #{ref}(:#{selected_fixture})"
0
+ print "#{start_line_gap}@#{Inflector.singularize ref} = #{ref}(#{symbolize_name selected_fixture})"
0
   end
0
 end
...
265
266
267
268
 
269
270
271
...
265
266
267
 
268
269
270
271
0
@@ -265,7 +265,7 @@
0
     </dict>
0
     <dict>
0
       <key>match</key>
0
- <string>\b(after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_exclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible|attr_readonly)\b</string>
0
+ <string>\b(named_scope|after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_exclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible|attr_readonly)\b</string>
0
       <key>name</key>
0
       <string>support.function.activerecord.rails</string>
0
     </dict>
...
134
135
136
 
 
 
 
 
 
 
 
 
 
137
138
139
...
193
194
195
 
196
197
198
...
836
837
838
 
 
839
840
841
...
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
...
203
204
205
206
207
208
209
...
847
848
849
850
851
852
853
854
0
@@ -134,6 +134,16 @@
0
         <key>name</key>
0
         <string>link_to</string>
0
       </dict>
0
+ <key>3DF64504-EE4E-4EA2-BE81-80D8DE446656</key>
0
+ <dict>
0
+ <key>items</key>
0
+ <array>
0
+ <string>1CB65A0D-4FEC-4438-9B4F-8B0BD13FB875</string>
0
+ <string>4E286CB4-069E-474C-A970-95216FE7DE95</string>
0
+ </array>
0
+ <key>name</key>
0
+ <string>Scopes</string>
0
+ </dict>
0
       <key>4D3A01D4-ACA8-49AF-B1DD-428B823964C3</key>
0
       <dict>
0
         <key>items</key>
0
@@ -193,6 +203,7 @@
0
           <string>------------------------------------</string>
0
           <string>CD88AD5A-7F20-4D4C-882A-31E1CDFDFD16</string>
0
           <string>B89CD2E9-4271-41BB-8AF6-A747553D99EB</string>
0
+ <string>3DF64504-EE4E-4EA2-BE81-80D8DE446656</string>
0
           <string>A26B8A37-FAC0-4F44-B18D-6BE30D84F27E</string>
0
           <string>7D9194BB-2BCC-4E20-84C8-0990B77D5515</string>
0
         </array>
0
@@ -836,6 +847,8 @@
0
     <string>A017AB39-A875-40DC-8ACF-7E3551057CA0</string>
0
     <string>FE430ECD-5D40-4D95-A73B-F064C73992DE</string>
0
     <string>59CD3A41-8164-4FB4-B462-D7ACE86BCDBF</string>
0
+ <string>1CB65A0D-4FEC-4438-9B4F-8B0BD13FB875</string>
0
+ <string>4E286CB4-069E-474C-A970-95216FE7DE95</string>
0
     <string>D975E5C1-42C2-40F1-8960-0DA533B18113</string>
0
     <string>36E2A3EE-E9CC-4B7F-A4CF-AFAF970B8699</string>
0
     <string>38D5CA05-E219-4399-A244-609AF40B1D0B</string>

Comments

    No one has commented yet.