Sha256: 7ffaee0916ec61e4c6305c32fd0a26b9324119b314f9684533b7dcf410e47601
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
require 'rails/generators' module Hatchy::Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) def create_route route 'mount Hatchy::Engine => "/"' end def copy_initializer template "hatchy.rb", "config/initializers/hatchy.rb" end def copy_locale copy_file "../../../config/locales/en.yml", "config/locales/hatchy.en.yml" copy_file "../../../config/locales/devise.en.yml", "config/locales/devise.en.yml" end def copy_devise_initializer copy_file "../../../config/initializers/devise.rb", "config/initializers/devise.rb" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hatchy-0.0.8.pre | lib/generators/hatchy/install_generator.rb |
hatchy-0.0.7.pre | lib/generators/hatchy/install_generator.rb |
hatchy-0.0.6.pre | lib/generators/hatchy/install_generator.rb |