Skip to content

Commit

Permalink
deleting empty lines in docs parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed May 10, 2012
1 parent 3a6ffbb commit 6cbe8da
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions activesupport/lib/active_support/callbacks.rb
Expand Up @@ -54,7 +54,6 @@ module ActiveSupport
# saving...
# - save
# saved
#
module Callbacks
extend Concern

Expand All @@ -73,7 +72,6 @@ module Callbacks
# 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)
Expand Down Expand Up @@ -199,7 +197,6 @@ def apply(code)
# yield self
# end
# end
#
def define_conditional_callback
name = "_conditional_callback_#{@kind}_#{next_id}"
@klass.class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
Expand Down Expand Up @@ -253,7 +250,6 @@ def recompile_options!
# 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
Expand Down Expand Up @@ -405,7 +401,6 @@ def __update_callbacks(name, filters = [], block = nil) #:nodoc:
# 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

Expand All @@ -430,7 +425,6 @@ def set_callback(name, *filter_list, &block)
# 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|
Expand All @@ -449,7 +443,6 @@ def skip_callback(name, *filter_list, &block)
end

# Remove all set callbacks for the given event.
#
def reset_callbacks(symbol)
callbacks = send("_#{symbol}_callbacks")

Expand Down Expand Up @@ -530,7 +523,6 @@ def reset_callbacks(symbol)
# 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|
Expand Down

0 comments on commit 6cbe8da

Please sign in to comment.