Sha256: 4538ba038058e5b9907982d5768135eff180a4f25e7f6905b195f4f8c20a9b2a
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module RedisDictionary module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "Installs Redis Dictionary and generates initializer + route" def copy_initializer template 'redis_dictionary.rb.erb', 'config/initializers/redis_dictionary.rb' end def setup_routes route "mount RedisDictionary::Engine => '/translations'" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_dictionary-1.0.0 | lib/generators/redis_dictionary/install/install_generator.rb |