diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-10-14 13:58:33 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-10-14 13:58:33 +0200 |
commit | 801371abee2282f8f113e9708d6bf109f496f586 (patch) | |
tree | 58c25dccc9f77586a010426d0a858bb31a2443a6 /activerecord/lib/active_record/type.rb | |
parent | 31af8c90b60dc475fd80d2919bfb874b4acc4507 (diff) | |
download | rails-801371abee2282f8f113e9708d6bf109f496f586.tar.gz rails-801371abee2282f8f113e9708d6bf109f496f586.tar.bz2 rails-801371abee2282f8f113e9708d6bf109f496f586.zip |
fix broken RDoc markup. Use `<tt>` instead of `+`. [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/type.rb')
-rw-r--r-- | activerecord/lib/active_record/type.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/type.rb b/activerecord/lib/active_record/type.rb index 74dfe88349..c90e77d7e8 100644 --- a/activerecord/lib/active_record/type.rb +++ b/activerecord/lib/active_record/type.rb @@ -24,11 +24,11 @@ module ActiveRecord # Add a new type to the registry, allowing it to be referenced as a # symbol by ActiveRecord::Attributes::ClassMethods#attribute. If your # type is only meant to be used with a specific database adapter, you can - # do so by passing +adapter: :postgresql+. If your type has the same + # do so by passing <tt>adapter: :postgresql</tt>. If your type has the same # name as a native type for the current adapter, an exception will be - # raised unless you specify an +:override+ option. +override: true+ will - # cause your type to be used instead of the native type. +override: - # false+ will cause the native type to be used over yours if one exists. + # raised unless you specify an +:override+ option. <tt>override: true</tt> will + # cause your type to be used instead of the native type. <tt>override: + # false</tt> will cause the native type to be used over yours if one exists. def register(type_name, klass = nil, **options, &block) registry.register(type_name, klass, **options, &block) end |