change abbreviation to c for controller
This commit is contained in:
parent
9371c648e1
commit
7924eee16b
@ -750,42 +750,46 @@ snippet mapwo
|
|||||||
${0}
|
${0}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
###########################
|
||||||
|
# controller snippets #
|
||||||
|
###########################
|
||||||
|
|
||||||
# before callback
|
# before callback
|
||||||
snippet mbv
|
snippet cbv
|
||||||
before_validation :${0:method}
|
before_validation :${0:method}
|
||||||
snippet mbc
|
snippet cbc
|
||||||
before_create :${0:method}
|
before_create :${0:method}
|
||||||
snippet mbu
|
snippet cbu
|
||||||
before_update :${0:method}
|
before_update :${0:method}
|
||||||
snippet mbs
|
snippet cbs
|
||||||
before_save :${0:method}
|
before_save :${0:method}
|
||||||
snippet mbd
|
snippet cbd
|
||||||
before_destroy :${0:method}
|
before_destroy :${0:method}
|
||||||
|
|
||||||
# after callback
|
# after callback
|
||||||
snippet mav
|
snippet cav
|
||||||
after_validation :${0:method}
|
after_validation :${0:method}
|
||||||
snippet maf
|
snippet caf
|
||||||
after_find :${0:method}
|
after_find :${0:method}
|
||||||
snippet mat
|
snippet cat
|
||||||
after_touch :${0:method}
|
after_touch :${0:method}
|
||||||
snippet mac
|
snippet cac
|
||||||
after_create :${0:method}
|
after_create :${0:method}
|
||||||
snippet mau
|
snippet cau
|
||||||
after_update :${0:method}
|
after_update :${0:method}
|
||||||
snippet mas
|
snippet cas
|
||||||
after_save :${0:method}
|
after_save :${0:method}
|
||||||
snippet mad
|
snippet cad
|
||||||
after_destroy :${0:method}
|
after_destroy :${0:method}
|
||||||
snippet mrc
|
|
||||||
|
|
||||||
# around callback
|
# around callback
|
||||||
|
snippet crc
|
||||||
around_create :${0:method}
|
around_create :${0:method}
|
||||||
snippet mru
|
snippet cru
|
||||||
around_update :${0:method}
|
around_update :${0:method}
|
||||||
snippet mrs
|
snippet crs
|
||||||
around_save :${0:method}
|
around_save :${0:method}
|
||||||
snippet mrd
|
snippet crd
|
||||||
around_destroy :${0:method}
|
around_destroy :${0:method}
|
||||||
|
|
||||||
snippet mcht
|
snippet mcht
|
||||||
@ -933,6 +937,8 @@ 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