scaf-generator 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ class ScafGenerator < Rails::Generators::Base
11
11
  super
12
12
 
13
13
  # Inicializa la variable de instancia @attributos a partir de los argumentos
14
- # obtener_atributos
14
+ obtener_atributos
15
15
 
16
16
  # Genera un Controller
17
17
  generate "controller", "#{plural_name} --no-assets"
@@ -19,6 +19,11 @@ class ScafGenerator < Rails::Generators::Base
19
19
  # Genera un Scaffold sin Controller ni Vistas ni Assets y con atributo logico <tt>es_activo<tt>
20
20
  generate("scaffold", "#{scaffold_name} #{arguments.join(' ')} es_activo:boolean --no-scaffold-controller --no-assets")
21
21
 
22
+ says "******** #{destination_root}**********"
23
+ says "******** #{destination_root}**********"
24
+ says "******** #{destination_root}**********"
25
+ says "******** #{destination_root}**********"
26
+
22
27
  # Agrega Default Scope y Metodo Eliminar! al Modelo
23
28
  inject_into_file "app/models/#{singular_name}.rb", "\n\n default_scope where(:es_activo => true)\n\n def eliminar!\n update_attributes :es_activo => false\n end\n" , :after => /ActiveRecord::Base$/
24
29
 
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Scaf
2
2
  module Generator
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaf-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,6 +41,7 @@ files:
41
41
  - pkg/scaf-generator-0.1.5.gem
42
42
  - pkg/scaf-generator-0.1.6.gem
43
43
  - pkg/scaf-generator-0.1.7.gem
44
+ - pkg/scaf-generator-0.2.1.gem
44
45
  - scaf-generator.gemspec
45
46
  homepage: http://github.com/nicanorperera/scaf-generator
46
47
  licenses: []