Class: LolAuth::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#add_facebook_configObject


6
7
8
# File 'lib/generators/lol_auth/install/install_generator.rb', line 6

def add_facebook_config
  application "config.facebook_app = config_for(:facebook_app)"
end

#copy_fcebook_fileObject


10
11
12
# File 'lib/generators/lol_auth/install/install_generator.rb', line 10

def copy_fcebook_file
  copy_file "facebook_app.yml", "config/facebook_app.yml"
end

#copy_migrationsObject


14
15
16
# File 'lib/generators/lol_auth/install/install_generator.rb', line 14

def copy_migrations
  rake "lol_auth:install:migrations"
end