nothing
This commit is contained in:
parent
233901577f
commit
66e655a19e
|
@ -0,0 +1,11 @@
|
||||||
|
app\models\setting.rb :165
|
||||||
|
# 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
|
||||||
|
程序部分链接中制定了subdomain参数,使链接在二级域名中来回跳转。
|
||||||
|
为了开发方便,使之功能在development模式下失效。
|
||||||
|
# => nyan
|
||||||
|
================================================================================
|
|
@ -87,6 +87,7 @@ class MemosController < ApplicationController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # show.html.erb
|
format.html # show.html.erb
|
||||||
format.json { render json: @memo }
|
format.json { render json: @memo }
|
||||||
|
format.xml { render xml: @memo }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue