Class: FastTrack::Omniauth

Inherits:
Track
  • Object
show all
Defined in:
lib/tracks/omniauth.rb

Overview

TODO

Add Omniauth without adding any social networks

Based on this gist: gist.github.com/schleg/993566

Instance Attribute Summary

Attributes inherited from Track

#generator

Instance Method Summary collapse

Methods inherited from Track

before_migrate, before_migrate_block, #create_file, #g, #gem, #gem_group, gemfile, gemfile_block, #generate, #initialize, #rake, #read_file, #route, #run

Methods included from TrackMethods

#bundle_install, #config, #db_migrate!, #migration, #model

Constructor Details

This class inherits a constructor from FastTrack::Track

Instance Method Details

#invokeObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/tracks/omniauth.rb', line 12

def invoke
  migration "add_name_to_users", {
    "name" => "string"
  }

  model "Authorization", {
    "provider" => "string",
    "uid"      => "string",
    "user_id"  => "integer",
    "token"    => "string",
    "secret"   => "string",
    "name"     => "string",
    "link"     => "string"
  }
end