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:
Andy Waite 2016-02-07 14:54:19 +00:00
parent 3a55cad702
commit 31b2fe023a

View File

@ -15,7 +15,7 @@ t.boolean :${1:title}
$0
endsnippet
snippet cla "Create controller class"
snippet clac "Create controller class"
class ${1:Model}Controller < ApplicationController
before_filter :find_${2:model}
@ -48,7 +48,7 @@ t.float :${1:title}
$0
endsnippet
snippet cla "Create functional test class"
snippet clact "Create functional test class"
require 'test_helper'
class ${1:Model}ControllerTest < ActionController::TestCase