class UserMgmt::Generators::InstallGenerator
Public Instance Methods
add_user_mgmt_routes()
click to toggle source
def copy_locale
copy_file "../../../config/locales/en.yml", "config/locales/user_mgmt.en.yml"
end
# File lib/generators/user_mgmt/install_generator.rb, line 17 def add_user_mgmt_routes user_mgmt_route = "mount UserMgmt::Engine => '/user'" route user_mgmt_route end
copy_initializer()
click to toggle source
# File lib/generators/user_mgmt/install_generator.rb, line 9 def copy_initializer template "user_mgmt.rb", "config/initializers/user_mgmt.rb" end
show_readme()
click to toggle source
# File lib/generators/user_mgmt/install_generator.rb, line 22 def show_readme readme "README" if behavior == :invoke end