Skip to content

Commit 5ffaf41

Browse files
authored
Merge pull request rails#47828 from p8/docs/headers-activemodel
Use h1 for Active Model documentation titles [ci-skip]
2 parents 08203b8 + f8e5dab commit 5ffaf41

File tree

14 files changed

+16
-14
lines changed

14 files changed

+16
-14
lines changed

activemodel/lib/active_model/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module ActiveModel
4-
# == Active \Model \API
4+
# = Active \Model \API
55
#
66
# Includes the required interface for an object to interact with
77
# Action Pack and Action View, using different Active Model modules.

activemodel/lib/active_model/attribute_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module ActiveModel
1515
class MissingAttributeError < NoMethodError
1616
end
1717

18-
# == Active \Model \Attribute \Methods
18+
# = Active \Model \Attribute \Methods
1919
#
2020
# Provides a way to add prefixes and suffixes to your methods as
2121
# well as handling the creation of <tt>ActiveRecord::Base</tt>-like

activemodel/lib/active_model/attributes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# frozen_string_literal: true
22

33
module ActiveModel
4+
# = Active \Model \Attributes
5+
#
46
# The Attributes module allows models to define attributes beyond simple Ruby
57
# readers and writers. Similar to Active Record attributes, which are
68
# typically inferred from the database schema, Active Model Attributes are

activemodel/lib/active_model/callbacks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require "active_support/core_ext/hash/keys"
55

66
module ActiveModel
7-
# == Active \Model \Callbacks
7+
# = Active \Model \Callbacks
88
#
99
# Provides an interface for any class to have Active Record like callbacks.
1010
#

activemodel/lib/active_model/conversion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module ActiveModel
4-
# == Active \Model \Conversion
4+
# = Active \Model \Conversion
55
#
66
# Handles default conversions: to_model, to_key, to_param, and to_partial_path.
77
#

activemodel/lib/active_model/dirty.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "active_model/attribute_mutation_tracker"
44

55
module ActiveModel
6-
# == Active \Model \Dirty
6+
# = Active \Model \Dirty
77
#
88
# Provides a way to track changes in your object in the same way as
99
# Active Record does.

activemodel/lib/active_model/errors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
require "forwardable"
1010

1111
module ActiveModel
12-
# == Active \Model \Errors
12+
# = Active \Model \Errors
1313
#
1414
# Provides error related functionalities you can include in your object
1515
# for handling error messages and interacting with Action View helpers.

activemodel/lib/active_model/model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module ActiveModel
4-
# == Active \Model \Basic \Model
4+
# = Active \Model \Basic \Model
55
#
66
# Allows implementing models similar to ActiveRecord::Base.
77
# Includes ActiveModel::API for the required interface for an

activemodel/lib/active_model/serialization.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "active_support/core_ext/enumerable"
44

55
module ActiveModel
6-
# == Active \Model \Serialization
6+
# = Active \Model \Serialization
77
#
88
# Provides a basic serialization to a serializable_hash for your objects.
99
#

activemodel/lib/active_model/serializers/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
module ActiveModel
66
module Serializers
7-
# == Active \Model \JSON \Serializer
7+
# = Active \Model \JSON \Serializer
88
module JSON
99
extend ActiveSupport::Concern
1010
include ActiveModel::Serialization

0 commit comments

Comments
 (0)