bigdir/ReadMe.txt

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-04-10 08:52:59 +08:00
app/models/setting.rb :165
2014-04-01 20:05:14 +08:00
# fixed domain url in development. tantantan's bug
if Rails.env.development?
methods.map do |m|
define_singleton_method m do; nil; end if m.to_s =~ /([a-zA-Z]+_domain)$/
end
end
<20><><EFBFBD>򲿷<EFBFBD><F2B2BFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD>subdomain<69><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>
Ϊ<>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ֮<CAB9><D6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>developmentģʽ<C4A3><CABD>ʧЧ<CAA7><D0A7>
# => nyan
================================================================================
2014-04-10 08:52:59 +08:00
app/controller/projects_controller.rb ===> projects#fake
fake filter: <20>޸<EFBFBD><DEB8>˴<EFBFBD><CBB4><EFBFBD>ҳ<EFBFBD><D2B3><EFBFBD>е<EFBFBD>Count<6E><74>׺<EFBFBD><D7BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><>Ϊ<EFBFBD><CEAA>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>fake<6B><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
================================================================================
2014-04-04 15:24:42 +08:00
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD>͸ı<CDB8>
app\helper\application_helper.rb
# rewrite navigation
app\views\layouts\_base_header.html.erb
# reset navigation by domain name and url through regular match
================================================================================
#<23><>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD>벻ͬ<EBB2BB><CDAC>ҳ<EFBFBD><D2B3>
app\controller\welcome_controller.rb
def entry_select_user
if request.original_url.match(/user\.trustie\.net/)
redirect_to(:controller => "users", :action => "index")
return 0
end
end
================================================================================