Sha256: 645c3bf99ef8c72535920adbe65ce9e133f40614c0c86ebb0405cf450123b85f

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

# :nodoc: namespace
module AuthpwnRails


class FacebookMigrationGenerator < Rails::Generators::Base
  source_root File.expand_path("../templates", __FILE__)

  def create_session_model
    template 'facebook_token.rb',
             File.join('app/models', class_path, 'facebook_token.rb')
    template '002_create_facebook_tokens.rb',
        File.join('db/migrations', '20100725000002_create_facebook_tokens.rb')
    template 'facebook_tokens.yml', File.join('test/fixtures', 'facebook_tokens.yml')
  end
end  # class AuthpwnRails::UserMigrationGenerator

end  # namespace AuthpwnRails

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authpwn_rails-0.3.0 lib/authpwn_rails/generators/facebook_migration_generator.rb