From 11c2c0ef2f5e3382fa95fc0e9e94835f74a31702 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Wed, 28 Jul 2021 10:30:06 -0500 Subject: [PATCH] Fix incomplete :nodoc: directives [ci-skip] --- actionview/lib/action_view/template/error.rb | 2 +- activerecord/lib/active_record/attribute_methods/read.rb | 2 +- .../connection_adapters/sqlite3/database_statements.rb | 2 +- activerecord/lib/active_record/core.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actionview/lib/action_view/template/error.rb b/actionview/lib/action_view/template/error.rb index a676cbad25..6256abab18 100644 --- a/actionview/lib/action_view/template/error.rb +++ b/actionview/lib/action_view/template/error.rb @@ -229,7 +229,7 @@ module ActionView TemplateError = Template::Error - class SyntaxErrorInTemplate < TemplateError #:nodoc + class SyntaxErrorInTemplate < TemplateError #:nodoc: def initialize(template, offending_code_string) @offending_code_string = offending_code_string super(template) diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 01126ea24b..e83b7ff02b 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -34,7 +34,7 @@ module ActiveRecord # This method exists to avoid the expensive primary_key check internally, without # breaking compatibility with the read_attribute API - def _read_attribute(attr_name, &block) # :nodoc + def _read_attribute(attr_name, &block) # :nodoc: @attributes.fetch_value(attr_name, &block) end diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb b/activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb index bb96a8d0be..e438d5bcca 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb @@ -72,7 +72,7 @@ module ActiveRecord end alias :exec_update :exec_delete - def begin_isolated_db_transaction(isolation) #:nodoc + def begin_isolated_db_transaction(isolation) #:nodoc: raise TransactionIsolationError, "SQLite3 only supports the `read_uncommitted` transaction isolation level" if isolation != :read_uncommitted raise StandardError, "You need to enable the shared-cache mode in SQLite mode before attempting to change the transaction isolation level" unless shared_cache? diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index d57716f263..4dbaa0bb05 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -210,7 +210,7 @@ module ActiveRecord @connection_class = b end - def self.connection_class # :nodoc + def self.connection_class # :nodoc: @connection_class ||= false end