Sha256: 7bbb66a86c7b5ddac2a7b0cdecfdef93300acc38656aef433490899c22fed6d5

Contents?: true

Size: 598 Bytes

Versions: 10

Compression:

Stored size: 598 Bytes

Contents

# :nodoc: namespace
module Authpwn

# rails g authpwn:facebook
class FacebookGenerator < Rails::Generators::Base
  source_root File.expand_path("../templates", __FILE__)

  def create_facebook_model
    copy_file 'facebook_token.rb',
              File.join('app', 'models', 'facebook_token.rb')
    copy_file '002_create_facebook_tokens.rb',
        File.join('db', 'migrate', '20100725000002_create_facebook_tokens.rb')
    copy_file 'facebook_tokens.yml',
              File.join('test', 'fixtures', 'facebook_tokens.yml')
  end
end  # class Authpwn::FacebookGenerator

end  # namespace Authpwn

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
authpwn_rails-0.9.6 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.5 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.4 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.3 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.2 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.1 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.9.0 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.8.3 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.8.2 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.8.1 lib/authpwn_rails/generators/facebook_generator.rb