This commit is contained in:
xianbo 2014-04-01 19:55:35 +08:00
parent b43a899a18
commit 233901577f
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class Setting < ActiveRecord::Base
end end
# fixed domain url in development. tantantan's bug # fixed domain url in development. tantantan's bug
if Rails.env.production? if Rails.env.development?
methods.map do |m| methods.map do |m|
define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/ define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/
end end