Skip to content

Commit

Permalink
respect the convention
Browse files Browse the repository at this point in the history
  • Loading branch information
wongyouth committed Mar 14, 2014
1 parent 7924eee commit dfc456e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions snippets/ruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -756,41 +756,41 @@ snippet mapwo

# before callback
snippet cbv
before_validation :${0:method}
before_validation :${0:method}
snippet cbc
before_create :${0:method}
before_create :${0:method}
snippet cbu
before_update :${0:method}
before_update :${0:method}
snippet cbs
before_save :${0:method}
snippet cbd
before_destroy :${0:method}
before_destroy :${0:method}

# after callback
snippet cav
after_validation :${0:method}
after_validation :${0:method}
snippet caf
after_find :${0:method}
after_find :${0:method}
snippet cat
after_touch :${0:method}
after_touch :${0:method}
snippet cac
after_create :${0:method}
after_create :${0:method}
snippet cau
after_update :${0:method}
after_update :${0:method}
snippet cas
after_save :${0:method}
after_save :${0:method}
snippet cad
after_destroy :${0:method}
after_destroy :${0:method}

# around callback
snippet crc
around_create :${0:method}
around_create :${0:method}
snippet cru
around_update :${0:method}
around_update :${0:method}
snippet crs
around_save :${0:method}
around_save :${0:method}
snippet crd
around_destroy :${0:method}
around_destroy :${0:method}

snippet mcht
change_table :${1:table_name} do |t|
Expand Down

0 comments on commit dfc456e

Please sign in to comment.