Sha256: ee3cf5995ed659a2f39162116acbbaee56f9f728a3d66428957e80987a08b452
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
module Syncano # Module for generators used implemented in the gem module Generators # Install generator used for initializing gem in a Rails application class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) # Copies templates for initializers def create_initializers Dir["#{self.class.source_root}/initializers/*.rb"].each do |filepath| name = File.basename(filepath) template "initializers/#{name}", "config/initializers/#{name}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems