kbighorse / da_bobfather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# Get A Connection @neo ||= Neography Rest Client

$neo = Neography Rest Client in initializer

def neo_con

if $neo 
 return $neo
else
  $neo = Neography Rest Client in initializer
  Rails.logger.info("Neography COnnection Got Dropped")
end

end

Model FriendShips #

# rails g scaffold user name:string email:String, fbid:string, registered:boolean, fb_access_token:string, favorite_donut:string, last_login:time, state:string is_bobfather:boolean

property :name, :type => String, :index => :exact property :email, :type => String property :fbid, :type => String, :index => :exact, :unique => true property :registered, :type => :boolean, :default => false #, :index => :exact

property :fb_access_token, :type => String property :favorite_donut, :type => String, :index => :exact property :last_login, :type => Time property :state, :type => String, :index => :exact # use this as an explicity indication of Bobfatherhood by the user property :is_bobfather, :type => :boolean, :default => false

About


Languages

Language:Ruby 75.8%Language:HTML 21.0%Language:CoffeeScript 1.4%Language:JavaScript 1.0%Language:CSS 0.6%Language:SCSS 0.2%