lightek_vpm 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f627ee188568a19bac737b2376624fba4659aeee16d15f99d71560d43c284cf8
4
- data.tar.gz: f263418db79f5540875159ea210f9797681f07f990317cc043a887f1227aedb6
3
+ metadata.gz: 1cef9e0f5b9a834cab185b0710b31ce5ac8b249590a88cb40d28802d1751fb5a
4
+ data.tar.gz: 8a00fbd3660b97c73b686d4fc086204ba7e7706375cd8c352a4ea81c4818484d
5
5
  SHA512:
6
- metadata.gz: 86df1b8530e74f64e0f416aaaaa82e2c8720e67bedb4aff7e62a1c7f452b8acb6445793fea51af64a00e8f3d0e5fa6e5aaeead78d229374c4250fbcf0b7e4c03
7
- data.tar.gz: 74e7079728533d82e48934d6ec72a9fc895e76f0be338db24239921e4261bb60aff9f7e75373f46cb5a641f10976e9598c6b158a644d9792fdafa1732a746835
6
+ metadata.gz: 9afa936e042e525b62f646ef733d3bf8a44d5ea9ea31441b370fd2254175f262c4ae57e8943a3583e49aa9989ecc08486ac2d390c451504e7de3011589dd3194
7
+ data.tar.gz: 0d399b1fab0d122291fb598ee447b3a2d4c97f2fdb2114cc0515d407f53bdd5e35153cd1a1a0f6c53d42318e1074d5ec82400627dea05623e98ea3c589b625fb
@@ -7,9 +7,11 @@ module LightekVpm
7
7
  class ControllerGenerator < Rails::Generators::NamedBase
8
8
  source_root File.expand_path('../templates', __FILE__)
9
9
  include Rails::Generators::ResourceHelpers
10
+ include GeneratorHelpers # Include the GeneratorHelpers module
11
+
10
12
  class_option :skip_show, type: :boolean, default: false, desc: 'Skip "show" action'
11
13
 
12
- desc 'Generates controller, controller_spec and views for the model with the given NAME.'
14
+ desc 'Generates controller, controller_spec, and views for the model with the given NAME.'
13
15
 
14
16
  def copy_controller_and_spec_files
15
17
  template 'controller.rb', File.join('app/controllers', "#{controller_file_name}_controller.rb")
@@ -31,7 +33,7 @@ module LightekVpm
31
33
  end
32
34
 
33
35
  def add_abilities
34
- ability_string = "n can :manage, #{class_name}, user_id: user.id"
36
+ ability_string = "\n can :manage, #{class_name}, user_id: user.id"
35
37
  inject_into_file "#{Rails.root}/app/models/ability.rb", ability_string, after: /def initialize[a-z()]+/i
36
38
  end
37
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LightekVpm
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightek_vpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlon Henry