Class: RackCasualGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rack_casual_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



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


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