/usr/lib/ruby/vendor_ruby/generators/client_side_validations/install_generator.rb is in ruby-client-side-validations 3.2.6+gh-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | require 'generators/client_side_validations/copy_assets_generator'
module ClientSideValidations
module Generators
class InstallGenerator < CopyAssetsGenerator
def copy_initializer
source_paths << File.expand_path('../../templates/client_side_validations', __FILE__)
copy_file 'initializer.rb', 'config/initializers/client_side_validations.rb'
end
private
def self.installation_message
"Copies initializer into config/initializers and #{super.downcase}"
end
desc installation_message
end
end
end
|