Sha256: b6b6c6b90b47a935fa35a8466b27d0436afe4b4753983ee0623a9456e370810e
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
module CanonicalRails class InstallGenerator < Rails::Generators::Base def self.source_paths paths = [] paths << File.expand_path('../templates', "../../#{__FILE__}") paths << File.expand_path('../templates', "../#{__FILE__}") paths << File.expand_path('../templates', __FILE__) paths.flatten end def add_files template 'canonical_rails.rb', 'config/initializers/canonical_rails.rb' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zhulei-canonical-rails-0.2.4 | lib/generators/canonical_rails/install/install_generator.rb |