Flowdock
method

compile

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveSupport::Callbacks::CallbackChain
compile() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/callbacks.rb, line 323
      def compile
        method =  ["value = nil", "halted = false"]
        callbacks = "value = !halted && (!block_given? || yield)"
        reverse_each do |callback|
          callbacks = callback.apply(callbacks)
        end
        method << callbacks

        method << "value"
        method.join("\n")
      end
Register or log in to add new notes.