rename references of privileged to gold

This commit is contained in:
r888888888
2013-04-28 00:04:52 -07:00
parent 6a00c6330f
commit d5f575159f
112 changed files with 165 additions and 165 deletions

View File

@@ -46,8 +46,8 @@ module Danbooru
true
end
# Set to true to give all new users privileged access.
def start_as_privileged?
# Set to true to give all new users gold access.
def start_as_gold?
false
end
@@ -109,7 +109,7 @@ module Danbooru
# Determines who can see ads.
def can_see_ads?(user)
!user.is_privileged?
!user.is_gold?
end
# Users cannot search for more than X regular tags at a time.
@@ -231,7 +231,7 @@ module Danbooru
end
def is_user_restricted?(user)
!user.is_privileged?
!user.is_gold?
end
def is_user_advertiser?(user)

View File

@@ -1,2 +1,2 @@
server "sonohara.donmai.us", :web, :app, :db, :primary => true
server "hijiribe.donmai.us", :web, :app
server "hijiribe.donmai.us", :web, :app

View File

@@ -4,4 +4,4 @@
if defined? Unicorn
::NewRelic::Agent.manual_start()
::NewRelic::Agent.after_fork(:force_reconnect => true)
end
end

View File

@@ -39,4 +39,4 @@ pid "#{app_path}/tmp/pids/unicorn.pid"
# after_fork do |server, worker|
# ActiveRecord::Base.establish_connection
# end
# end