scaf-generator 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ class ScafGenerator < Rails::Generators::Base
20
20
  generate("scaffold", "#{scaffold_name} #{arguments.join(' ')} --no-scaffold-controller --no-assets")
21
21
 
22
22
  # Agrega Metodo Eliminar! al Modelo
23
- inject_into_file 'app/models/#{singular_name}.rb', " def eliminar!\n update_attributes :es_activo => false\n end" , :after => /ActiveRecord::Base$/
23
+ inject_into_file "app/models/#{singular_name}.rb", " def eliminar!\n update_attributes :es_activo => false\n end" , :after => /ActiveRecord::Base$/
24
24
 
25
25
  # Agrega controller de administracion en controllers/admin/
26
26
  template 'admin_controller.rb', "app/controllers/admin/#{plural_name}_controller.rb"
@@ -1,5 +1,5 @@
1
1
  module Scaf
2
2
  module Generator
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
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.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: