Class: Recipes::Annotate

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/potassium/recipes/annotate.rb

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
6
7
8
9
# File 'lib/potassium/recipes/annotate.rb', line 2

def create
  gather_gems(:development) do
    gather_gem('annotate', '~> 3.0')
  end

  template '../assets/lib/tasks/auto_annotate_models.rake',
    'lib/tasks/auto_annotate_models.rake'
end

#installObject



11
12
13
14
15
16
# File 'lib/potassium/recipes/annotate.rb', line 11

def install
  create
  after(:gem_install) do
    run "bundle exec annotate"
  end
end