Class: RackCasualGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RackCasualGenerator
- Defined in:
- lib/generators/rack_casual_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
4 5 6 |
# File 'lib/generators/rack_casual_generator.rb', line 4 def copy_initializer copy_file "initializer.rb", "config/initializers/rack-casual.rb" end |
#print_usage ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/rack_casual_generator.rb', line 8 def print_usage puts puts "Remember to include the middleware in your application." puts "You can put this into config/application.rb:" puts " config.middleware.use 'Rack::Casual::Authentication'" puts end |