Sha256: 86546d46f53f489d4ebc02b9564da21d8500d0865dda51424e1b6084f53fd45a
Contents?: true
Size: 759 Bytes
Versions: 105
Compression:
Stored size: 759 Bytes
Contents
require 'rails/generators' module UserMgmt module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Creates a UserMgmt initializer and copy locale files to your application." def copy_initializer template "user_mgmt.rb", "config/initializers/user_mgmt.rb" end # def copy_locale # copy_file "../../../config/locales/en.yml", "config/locales/user_mgmt.en.yml" # end def add_user_mgmt_routes user_mgmt_route = "mount UserMgmt::Engine => '/user'" route user_mgmt_route end def show_readme readme "README" if behavior == :invoke end end end end
Version data entries
105 entries across 105 versions & 1 rubygems