Merge branch 'master' of github.com:magnolia-fan/BeatHaven
This commit is contained in:
@@ -2,12 +2,6 @@ class TrackController < ApplicationController
|
||||
require 'net/http'
|
||||
require 'uri'
|
||||
def listen
|
||||
render :json => YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def fetchSearch q
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
class Invite
|
||||
include Mongoid::Document
|
||||
store_in :invites
|
||||
|
||||
key :referer, Integer,
|
||||
key :email, String,
|
||||
key :code, String,
|
||||
key :senton, Datetime
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class User
|
||||
include Mongoid::Document
|
||||
store_in :users
|
||||
|
||||
key :name, String,
|
||||
key :password, String,
|
||||
key :email, String,
|
||||
key :regdate, Datetime,
|
||||
key :invites, Integer,
|
||||
key :referer, Integer,
|
||||
key :active, Integer
|
||||
end
|
||||
Reference in New Issue
Block a user