Skip to content

Commit

Permalink
Improved default_scope snippet and added syntax hilighting
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis committed Feb 26, 2009
1 parent 387f267 commit da52580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snippets/default_scope.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>default_scope ${1::order} =&gt; ${2:'created_at DESC'}</string>
<string>default_scope :${1:order} =&gt; ${2:'created_at DESC'}${3:, :joins =&gt; :${4:table}}</string>
<key>name</key>
<string>default_scope</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Syntaxes/Ruby on Rails.plist
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
</dict>
<dict>
<key>match</key>
<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|accepts_nested_attributes_for)\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|accepts_nested_attributes_for|default_scope)\b</string>
<key>name</key>
<string>support.function.activerecord.rails</string>
</dict>
Expand Down

0 comments on commit da52580

Please sign in to comment.