1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #6832 from frodsan/nodoc_patch1

add :nodoc: to internal implementations [ci skip]
This commit is contained in:
Rafael Mendonça França 2012-06-22 14:41:06 -07:00
commit 3726080ece
10 changed files with 11 additions and 12 deletions

View file

@ -576,7 +576,7 @@ module ActionController
#
# The exception is stored in the exception accessor for further inspection.
module RaiseActionExceptions
def self.included(base)
def self.included(base) #:nodoc:
unless base.method_defined?(:exception) && base.method_defined?(:exception=)
base.class_eval do
attr_accessor :exception

View file

@ -459,7 +459,7 @@ module ActiveModel
end
protected
def attribute_method?(attr_name)
def attribute_method?(attr_name) #:nodoc:
respond_to_without_attributes?(:attributes) && attributes.include?(attr_name)
end

View file

@ -46,7 +46,7 @@ module ActiveModel
# Would only create the +after_create+ and +before_create+ callback methods in
# your class.
module Callbacks
def self.extended(base)
def self.extended(base) #:nodoc:
base.class_eval do
include ActiveSupport::Callbacks
end

View file

@ -76,7 +76,7 @@ module ActiveModel
@messages = {}
end
def initialize_dup(other)
def initialize_dup(other) #:nodoc:
@messages = other.messages.dup
super
end

View file

@ -54,7 +54,7 @@ module ActiveModel
# For more detailed information on other functionalities available, please refer
# to the specific modules included in <tt>ActiveModel::Model</tt> (see below).
module Model
def self.included(base)
def self.included(base) #:nodoc:
base.class_eval do
extend ActiveModel::Naming
extend ActiveModel::Translation

View file

@ -2,7 +2,7 @@ module ActiveRecord
module ConnectionAdapters # :nodoc:
module QueryCache
class << self
def included(base)
def included(base) #:nodoc:
dirties_query_cache base, :insert, :update, :delete
end

View file

@ -56,7 +56,7 @@ module ActiveSupport
# these from +Host+ directly including +Foo+ in +Bar+:
#
# module Bar
# include Foo
# include Foo
# def self.included(base)
# base.method_injected_by_foo
# end
@ -94,9 +94,8 @@ module ActiveSupport
# class Host
# include Bar # works, Bar takes care now of its dependencies
# end
#
module Concern
def self.extended(base)
def self.extended(base) #:nodoc:
base.instance_variable_set("@_dependencies", [])
end

View file

@ -2,7 +2,7 @@ module ActiveSupport
module Testing
module Declarative
def self.extended(klass)
def self.extended(klass) #:nodoc:
klass.class_eval do
unless method_defined?(:describe)

View file

@ -64,7 +64,7 @@ module ActiveSupport
end
end
def self.included klass
def self.included(klass) #:nodoc:
klass.extend(Module.new {
def test_methods
ParallelEach.new super

View file

@ -2,7 +2,7 @@ require 'tsort'
module Rails
module Initializable
def self.included(base)
def self.included(base) #:nodoc:
base.extend ClassMethods
end