class method
self.extract_options
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.extract_options(*methods, &block)
No documentation comment.
Parameters
-
methodsrest -
blockblock
Source
# File activesupport/lib/active_support/callbacks.rb, line 118
def self.extract_options(*methods, &block)
methods.flatten!
options = methods.extract_options!
methods << block if block_given?
return methods, options
end
Defined in activesupport/lib/active_support/callbacks.rb line 118
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Callbacks::CallbackChain