aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_decorators.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-24 12:30:21 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-24 12:30:21 +0200
commitb27e856d3f736be34b1df885ce6a795c9a015375 (patch)
tree7b34556ccdf27682dc880a91d0ecc73ac8a284a7 /activerecord/lib/active_record/attribute_decorators.rb
parentb0594a773d784354b3bdd0fb3d8ec5eb5e27d2b7 (diff)
downloadrails-b27e856d3f736be34b1df885ce6a795c9a015375.tar.gz
rails-b27e856d3f736be34b1df885ce6a795c9a015375.tar.bz2
rails-b27e856d3f736be34b1df885ce6a795c9a015375.zip
add missing `:nodoc:` for recent refactorings. [ci skip]
Adding `# :nodoc:` to the parent `class` / `module` is not going to ignore nested classes or modules. There is a modifier `# :nodoc: all` but sadly the containing class or module will continue to be in the docs. /cc @sgrif
Diffstat (limited to 'activerecord/lib/active_record/attribute_decorators.rb')
-rw-r--r--activerecord/lib/active_record/attribute_decorators.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_decorators.rb b/activerecord/lib/active_record/attribute_decorators.rb
index 92627f8d5d..5745bbe0e3 100644
--- a/activerecord/lib/active_record/attribute_decorators.rb
+++ b/activerecord/lib/active_record/attribute_decorators.rb
@@ -7,7 +7,7 @@ module ActiveRecord
self.attribute_type_decorations = TypeDecorator.new
end
- module ClassMethods
+ module ClassMethods # :nodoc:
def decorate_attribute_type(column_name, decorator_name, &block)
matcher = ->(name, _) { name == column_name.to_s }
key = "_#{column_name}_#{decorator_name}"
@@ -32,7 +32,7 @@ module ActiveRecord
end
end
- class TypeDecorator
+ class TypeDecorator # :nodoc:
delegate :clear, to: :@decorations
def initialize(decorations = {})