Sha256: 86839d7240e8e253d6ec88978e35b3f233c77acf507a6c5853467e94f618752c

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

module ZhuleiCanonicalRails
  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 'zhulei_canonical_rails.rb', 'config/initializers/zhulei_canonical_rails.rb'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zhulei-canonical-rails-1.0.1 lib/generators/zhulei_canonical_rails/install/install_generator.rb