Change Rails snippet triggers
At present, `cla` maps to both Create Controller Class and Create Functional Test class. Using `cla` for creating a controller seems overly-general, since we may want triggers for other types of classes, e.g. models. So I propose changing this to `clac`. And to remove ambiguity, I propose using `clact` for the controller test.
This commit is contained in:
parent
3a55cad702
commit
31b2fe023a
@ -15,7 +15,7 @@ t.boolean :${1:title}
|
|||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cla "Create controller class"
|
snippet clac "Create controller class"
|
||||||
class ${1:Model}Controller < ApplicationController
|
class ${1:Model}Controller < ApplicationController
|
||||||
before_filter :find_${2:model}
|
before_filter :find_${2:model}
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ t.float :${1:title}
|
|||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cla "Create functional test class"
|
snippet clact "Create functional test class"
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ${1:Model}ControllerTest < ActionController::TestCase
|
class ${1:Model}ControllerTest < ActionController::TestCase
|
||||||
|
Loading…
Reference in New Issue
Block a user