use m as prefix and fix conflicts with other snippets
This commit is contained in:
parent
dfc456ea49
commit
fc65844236
@ -750,46 +750,46 @@ snippet mapwo
|
|||||||
${0}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
###########################
|
###############################
|
||||||
# controller snippets #
|
# model callback snippets #
|
||||||
###########################
|
###############################
|
||||||
|
|
||||||
# before callback
|
# before callback
|
||||||
snippet cbv
|
snippet mbv
|
||||||
before_validation :${0:method}
|
before_validation :${0:method}
|
||||||
snippet cbc
|
snippet mbc
|
||||||
before_create :${0:method}
|
before_create :${0:method}
|
||||||
snippet cbu
|
snippet mbu
|
||||||
before_update :${0:method}
|
before_update :${0:method}
|
||||||
snippet cbs
|
snippet mbs
|
||||||
before_save :${0:method}
|
before_save :${0:method}
|
||||||
snippet cbd
|
snippet mbd
|
||||||
before_destroy :${0:method}
|
before_destroy :${0:method}
|
||||||
|
|
||||||
# after callback
|
# after callback
|
||||||
snippet cav
|
snippet mav
|
||||||
after_validation :${0:method}
|
after_validation :${0:method}
|
||||||
snippet caf
|
snippet maf
|
||||||
after_find :${0:method}
|
after_find :${0:method}
|
||||||
snippet cat
|
snippet mat
|
||||||
after_touch :${0:method}
|
after_touch :${0:method}
|
||||||
snippet cac
|
snippet macr
|
||||||
after_create :${0:method}
|
after_create :${0:method}
|
||||||
snippet cau
|
snippet mau
|
||||||
after_update :${0:method}
|
after_update :${0:method}
|
||||||
snippet cas
|
snippet mas
|
||||||
after_save :${0:method}
|
after_save :${0:method}
|
||||||
snippet cad
|
snippet mad
|
||||||
after_destroy :${0:method}
|
after_destroy :${0:method}
|
||||||
|
|
||||||
# around callback
|
# around callback
|
||||||
snippet crc
|
snippet marc
|
||||||
around_create :${0:method}
|
around_create :${0:method}
|
||||||
snippet cru
|
snippet maru
|
||||||
around_update :${0:method}
|
around_update :${0:method}
|
||||||
snippet crs
|
snippet mars
|
||||||
around_save :${0:method}
|
around_save :${0:method}
|
||||||
snippet crd
|
snippet mard
|
||||||
around_destroy :${0:method}
|
around_destroy :${0:method}
|
||||||
|
|
||||||
snippet mcht
|
snippet mcht
|
||||||
@ -937,8 +937,6 @@ snippet mct
|
|||||||
create_table :${1:table_name} do |t|
|
create_table :${1:table_name} do |t|
|
||||||
${0}
|
${0}
|
||||||
end
|
end
|
||||||
snippet mdt
|
|
||||||
drop_table :${1:table_name}
|
|
||||||
snippet migration class .. < ActiveRecord::Migration .. def up .. def down .. end
|
snippet migration class .. < ActiveRecord::Migration .. def up .. def down .. end
|
||||||
class ${1:class_name} < ActiveRecord::Migration
|
class ${1:class_name} < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
|
Loading…
Reference in New Issue
Block a user