Merge branch 'master' of github.com:magnolia-fan/BeatHaven
This commit is contained in:
commit
c55c239553
|
@ -2,12 +2,6 @@ class TrackController < ApplicationController
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
def listen
|
def listen
|
||||||
render :json => YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def fetchSearch q
|
|
||||||
|
|
||||||
end
|
end
|
||||||
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
|
|
@ -1,5 +1,6 @@
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
host: localhost
|
host: 192.168.0.100
|
||||||
|
port: 27017
|
||||||
# slaves:
|
# slaves:
|
||||||
# - host: slave1.local
|
# - host: slave1.local
|
||||||
# port: 27018
|
# port: 27018
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
||||||
|
|
||||||
|
one:
|
||||||
|
name:
|
||||||
|
password:
|
||||||
|
email:
|
||||||
|
regdate:
|
||||||
|
invites:
|
||||||
|
referer:
|
||||||
|
active: 1
|
||||||
|
|
||||||
|
two:
|
||||||
|
name:
|
||||||
|
password:
|
||||||
|
email:
|
||||||
|
regdate:
|
||||||
|
invites:
|
||||||
|
referer:
|
||||||
|
active: 1
|
|
@ -0,0 +1,8 @@
|
||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class UserTest < ActiveSupport::TestCase
|
||||||
|
# Replace this with your real tests.
|
||||||
|
test "the truth" do
|
||||||
|
assert true
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue