提交 ceb3b871 编写于 作者: C Charlie Somerville

reverts changes to Rails.version made in #8501

上级 022ed6c7
......@@ -82,6 +82,10 @@ def groups(*groups)
groups
end
def version
VERSION::STRING
end
def public_path
application && Pathname.new(application.paths["public"].first)
end
......
module Rails
# Returns the version of the currently loaded Rails as a Gem::Version
def self.version
Gem::Version.new "4.0.0.beta1"
end
module VERSION
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = Rails.version.segments
STRING = Rails.version.to_s
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
end
module Rails
def self.version
Gem::Version.new "4.0.0.beta1"
end
module VERSION
MAJOR = 4
MINOR = 0
TINY = 0
PRE = "beta1"
module VERSION #:nodoc:
MAJOR, MINOR, TINY, PRE = Rails.version.segments
STRING = Rails.version.to_s
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册