diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-12 12:05:29 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-12 12:05:29 -0300 |
commit | 9db1edd84a7643070c4edd17165cd9bd9d367f75 (patch) | |
tree | 04c2cd1530fa3bbfa27f1e823f47c3fc6d390a09 | |
parent | 60f7e0ca11d7fd33756ad36881eb947e0eb4d149 (diff) | |
parent | 93dc0b43d1fae1aa34032f9cab8f0822ea33b54d (diff) | |
download | rails-9db1edd84a7643070c4edd17165cd9bd9d367f75.tar.gz rails-9db1edd84a7643070c4edd17165cd9bd9d367f75.tar.bz2 rails-9db1edd84a7643070c4edd17165cd9bd9d367f75.zip |
Merge pull request #21210 from akihiro17/fix-rdoc-markup
[ci skip] Fix rdoc markup
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/serialization.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/serialization.rb b/activerecord/lib/active_record/attribute_methods/serialization.rb index e03bf5945d..60eecab0d0 100644 --- a/activerecord/lib/active_record/attribute_methods/serialization.rb +++ b/activerecord/lib/active_record/attribute_methods/serialization.rb @@ -11,7 +11,7 @@ module ActiveRecord # serialized object must be of that class on assignment and retrieval. # Otherwise <tt>SerializationTypeMismatch</tt> will be raised. # - # Empty objects as +{}+, in the case of +Hash+, or +[]+, in the case of + # Empty objects as <tt>{}</tt>, in the case of +Hash+, or <tt>[]</tt>, in the case of # +Array+, will always be persisted as null. # # Keep in mind that database adapters handle certain serialization tasks diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index c5d35b84f0..0371f760b0 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -92,7 +92,7 @@ module ActiveSupport # hash = ActiveSupport::HashWithIndifferentAccess.new # hash[:key] = 'value' # - # This value can be later fetched using either +:key+ or +'key'+. + # This value can be later fetched using either +:key+ or <tt>'key'</tt>. def []=(key, value) regular_writer(convert_key(key), convert_value(value, for: :assignment)) end |