Sha256: 204a8035a8ed83c95dcbc1a6f264e76ac8edb266d33415924d79e99a70f0f9f5

Contents?: true

Size: 587 Bytes

Versions: 22

Compression:

Stored size: 587 Bytes

Contents

# :nodoc: namespace
module AuthpwnRails


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 AuthpwnRails::FacebookGenerator

end  # namespace AuthpwnRails

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
authpwn_rails-0.4.2 lib/authpwn_rails/generators/facebook_generator.rb
authpwn_rails-0.4.1 lib/authpwn_rails/generators/facebook_generator.rb