Class: Foursquare::Generators::PushGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Foursquare::Generators::PushGenerator
- Defined in:
- lib/generators/foursquare/push/push_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
8 9 10 |
# File 'lib/generators/foursquare/push/push_generator.rb', line 8 def add_routes route "resources :checkins" end |
#create_checkins_controller ⇒ Object
12 13 14 |
# File 'lib/generators/foursquare/push/push_generator.rb', line 12 def create_checkins_controller template 'controllers/checkins_controller.rb', File.join('app/controllers/', 'checkins_controller.rb') end |