Class: Mongoid::Generators::OauthConsumerGenerator

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

Instance Method Summary collapse

Instance Method Details

#check_class_collisionsObject



6
7
8
# File 'lib/generators/mongoid/oauth_consumer_generator.rb', line 6

def check_class_collisions
  class_collisions '', %w(ConsumerToken)
end

#copy_modelsObject



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