提交 b21012bc 编写于 作者: F Francesco Rodriguez

nodoc AR::Railtie [ci skip]

上级 e3fa8410
......@@ -10,7 +10,7 @@
module ActiveRecord
# = Active Record Railtie
class Railtie < Rails::Railtie
class Railtie < Rails::Railtie # :nodoc:
config.active_record = ActiveSupport::OrderedOptions.new
config.app_generators.orm :active_record, :migration => true,
......@@ -76,7 +76,7 @@ class Railtie < Rails::Railtie
config.after_initialize do |app|
ActiveSupport.on_load(:active_record) do
filename = File.join(app.config.paths["db"].first, "schema_cache.dump")
if File.file?(filename)
cache = Marshal.load File.binread filename
if cache.version == ActiveRecord::Migrator.current_version
......
......@@ -2,7 +2,7 @@
require 'active_record/log_subscriber'
module ActiveRecord
module Railties
module Railties # :nodoc:
module ControllerRuntime #:nodoc:
extend ActiveSupport::Concern
......@@ -37,7 +37,7 @@ def append_info_to_payload(payload)
end
end
module ClassMethods
module ClassMethods # :nodoc:
def log_process_action(payload)
messages, db_runtime = super, payload[:db_runtime]
messages << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册