Class: Multiauth::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Multiauth::Generators::InstallGenerator
- Defined in:
- lib/generators/multiauth/multiauth_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_assets ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/multiauth/multiauth_generator.rb', line 8 def copy_assets directory "images", "public/images/" copy_file "multiauth.css", "public/stylesheets/multiauth.css" copy_file "multiauth.js", "public/javascripts/multiauth.js" end |
#copy_config_file ⇒ Object
14 15 16 |
# File 'lib/generators/multiauth/multiauth_generator.rb', line 14 def copy_config_file copy_file "auth_providers.yml", "config/auth_providers.yml" end |
#show_readme ⇒ Object
18 19 20 |
# File 'lib/generators/multiauth/multiauth_generator.rb', line 18 def show_readme readme "README" end |