aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-10 02:09:59 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-10 02:09:59 -0500
commit6cbe8dab1e64d42eb376137366b48f1e20f9ddb9 (patch)
tree37fd2e22194caac5c89c2be32d2b3d6366602da0 /activesupport
parent3a6ffbbe42688f40edc8e0a12d0f556ef3720b9d (diff)
downloadrails-6cbe8dab1e64d42eb376137366b48f1e20f9ddb9.tar.gz
rails-6cbe8dab1e64d42eb376137366b48f1e20f9ddb9.tar.bz2
rails-6cbe8dab1e64d42eb376137366b48f1e20f9ddb9.zip
deleting empty lines in docs parts
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/callbacks.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb
index cbeba3139a..1972d439ed 100644
--- a/activesupport/lib/active_support/callbacks.rb
+++ b/activesupport/lib/active_support/callbacks.rb
@@ -54,7 +54,6 @@ module ActiveSupport
# saving...
# - save
# saved
- #
module Callbacks
extend Concern
@@ -73,7 +72,6 @@ module ActiveSupport
# run_callbacks :save do
# save
# end
- #
def run_callbacks(kind, key = nil, &block)
#TODO: deprecate key argument
runner_name = self.class.__define_callbacks(kind, self)
@@ -199,7 +197,6 @@ module ActiveSupport
# yield self
# end
# end
- #
def define_conditional_callback
name = "_conditional_callback_#{@kind}_#{next_id}"
@klass.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
@@ -253,7 +250,6 @@ module ActiveSupport
# Objects::
# a method is created that calls the before_foo method
# on the object.
- #
def _compile_filter(filter)
method_name = "_callback_#{@kind}_#{next_id}"
case filter
@@ -405,7 +401,6 @@ module ActiveSupport
# will be called only when it returns a false value.
# * <tt>:prepend</tt> - If true, the callback will be prepended to the existing
# chain rather than appended.
- #
def set_callback(name, *filter_list, &block)
mapped = nil
@@ -430,7 +425,6 @@ module ActiveSupport
# class Writer < Person
# skip_callback :validate, :before, :check_membership, :if => lambda { self.age > 18 }
# end
- #
def skip_callback(name, *filter_list, &block)
__update_callbacks(name, filter_list, block) do |target, chain, type, filters, options|
filters.each do |filter|
@@ -449,7 +443,6 @@ module ActiveSupport
end
# Remove all set callbacks for the given event.
- #
def reset_callbacks(symbol)
callbacks = send("_#{symbol}_callbacks")
@@ -530,7 +523,6 @@ module ActiveSupport
# define_callbacks :save, :scope => [:name]
#
# would call <tt>Audit#save</tt>.
- #
def define_callbacks(*callbacks)
config = callbacks.last.is_a?(Hash) ? callbacks.pop : {}
callbacks.each do |callback|