Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

commit to fix broken dcommit process

  • Loading branch information...
commit d77ec9f9fc48ee0086efef50ff6e334541231dab 1 parent 37deb3d
drnic authored
View
17 Snippets/named_scope lambda.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>named_scope :name, lambda { |${1:param}| { :conditions =&gt; ${3:['${4:${5:field} = ?}', ${6:$1}]} } }
+</string>
+ <key>name</key>
+ <string>named_scope lambda</string>
+ <key>scope</key>
+ <string>source.ruby.rails</string>
+ <key>tabTrigger</key>
+ <string>ncl</string>
+ <key>uuid</key>
+ <string>4E286CB4-069E-474C-A970-95216FE7DE95</string>
+</dict>
+</plist>
View
17 Snippets/named_scope.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>named_scope :name${1:, :joins =&gt; :${2:table}}, :conditions =&gt; ${3:['${4:${5:field} = ?}', ${6:true}]}
+</string>
+ <key>name</key>
+ <string>named_scope</string>
+ <key>scope</key>
+ <string>source.ruby.rails</string>
+ <key>tabTrigger</key>
+ <string>nc</string>
+ <key>uuid</key>
+ <string>1CB65A0D-4FEC-4438-9B4F-8B0BD13FB875</string>
+</dict>
+</plist>
View
7 Support/bin/fixture_auto_complete.rb
@@ -52,6 +52,11 @@ def filter_fixtures(fixtures, filter)
end
end
+# 'foo' => ':foo' and 'foo-bar' => ':"foo-bar"'
+def symbolize_name(name)
+ name.to_sym.inspect
+end
+
filetype, start_line_gap, ref, filter = parse_line
filter = "" if filter.nil?
foreign_fixtures = load_referenced_fixture_file(ref).keys
@@ -74,6 +79,6 @@ def filter_fixtures(fixtures, filter)
if filetype == :fixture
print "#{start_line_gap}#{ref}: #{selected_fixture}"
else
- print "#{start_line_gap}@#{Inflector.singularize ref} = #{ref}(:#{selected_fixture})"
+ print "#{start_line_gap}@#{Inflector.singularize ref} = #{ref}(#{symbolize_name selected_fixture})"
end
end
View
2  Syntaxes/Ruby on Rails.plist
@@ -265,7 +265,7 @@
</dict>
<dict>
<key>match</key>
- <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>
+ <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>
<key>name</key>
<string>support.function.activerecord.rails</string>
</dict>
View
13 info.plist
@@ -134,6 +134,16 @@
<key>name</key>
<string>link_to</string>
</dict>
+ <key>3DF64504-EE4E-4EA2-BE81-80D8DE446656</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>1CB65A0D-4FEC-4438-9B4F-8B0BD13FB875</string>
+ <string>4E286CB4-069E-474C-A970-95216FE7DE95</string>
+ </array>
+ <key>name</key>
+ <string>Scopes</string>
+ </dict>
<key>4D3A01D4-ACA8-49AF-B1DD-428B823964C3</key>
<dict>
<key>items</key>
@@ -193,6 +203,7 @@
<string>------------------------------------</string>
<string>CD88AD5A-7F20-4D4C-882A-31E1CDFDFD16</string>
<string>B89CD2E9-4271-41BB-8AF6-A747553D99EB</string>
+ <string>3DF64504-EE4E-4EA2-BE81-80D8DE446656</string>
<string>A26B8A37-FAC0-4F44-B18D-6BE30D84F27E</string>
<string>7D9194BB-2BCC-4E20-84C8-0990B77D5515</string>
</array>
@@ -836,6 +847,8 @@
<string>A017AB39-A875-40DC-8ACF-7E3551057CA0</string>
<string>FE430ECD-5D40-4D95-A73B-F064C73992DE</string>
<string>59CD3A41-8164-4FB4-B462-D7ACE86BCDBF</string>
+ <string>1CB65A0D-4FEC-4438-9B4F-8B0BD13FB875</string>
+ <string>4E286CB4-069E-474C-A970-95216FE7DE95</string>
<string>D975E5C1-42C2-40F1-8960-0DA533B18113</string>
<string>36E2A3EE-E9CC-4B7F-A4CF-AFAF970B8699</string>
<string>38D5CA05-E219-4399-A244-609AF40B1D0B</string>
Please sign in to comment.
Something went wrong with that request. Please try again.