Class: LargentinasGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LargentinasGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/largentinas/largentinas_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/largentinas/largentinas_generator.rb', line 10 def self.next_migration_number(dirname) if ActiveRecord::Base. Time.now.utc.strftime("%Y%m%d%H%M%S") else "%.3d" % (current_migration_number(dirname) + 1 ) end end |
Instance Method Details
#install ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/generators/largentinas/largentinas_generator.rb', line 18 def install gem "will_paginate", "~> 3.0.pre2" puts "paginacion" gem "cancan" puts "permisos para roles" gem "meta_search" puts "hace las busquedas mas faciles" gem "builder" puts "para hacer los xml" generate('bundle install') #generate('nifty:layout') #generate('devise:views') #models #vistas migrations end |