【发布时间】:2013-02-23 18:03:18
【问题描述】:
关于this question,我正在尝试覆盖ActiveRecord::ConnectionAdapters::PostgreSQLAdapter 中定义的返回PostgreSQL 版本的postgresql_version 方法:
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter
protected
# Returns the version of the connected PostgreSQL server.
def postgresql_version
80200
end
end
end
end
但是补丁没有应用。我在 config/initializer 中尝试过,并在 /lib 文件中要求它。帮忙?
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 activerecord monkeypatching