Class: Mongoid::Generators::OauthConsumerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Mongoid::Generators::OauthConsumerGenerator
- Defined in:
- lib/generators/mongoid/oauth_consumer_generator.rb
Instance Method Summary collapse
Instance Method Details
#check_class_collisions ⇒ Object
6 7 8 |
# File 'lib/generators/mongoid/oauth_consumer_generator.rb', line 6 def check_class_collisions class_collisions '', %w(ConsumerToken) end |
#copy_models ⇒ Object
10 11 12 |
# File 'lib/generators/mongoid/oauth_consumer_generator.rb', line 10 def copy_models template 'consumer_token.rb', File.join('app/models', 'consumer_token.rb') end |