From 233901577f79ef7e07933267e8c8a1ed5f18c7e2 Mon Sep 17 00:00:00 2001 From: xianbo Date: Tue, 1 Apr 2014 19:55:35 +0800 Subject: [PATCH] fix --- app/models/setting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/setting.rb b/app/models/setting.rb index ef461fb4..583d034d 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -163,7 +163,7 @@ class Setting < ActiveRecord::Base end # fixed domain url in development. tantantan's bug - if Rails.env.production? + if Rails.env.development? methods.map do |m| define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/ end