instance method build_callbacks

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

build_callbacks(options)

No documentation comment.

Parameters

options req
Source
# File actionpack/lib/action_view/helpers/prototype_helper.rb, line 635
        def build_callbacks(options)
          callbacks = {}
          options.each do |callback, code|
            if CALLBACKS.include?(callback)
              name = 'on' + callback.to_s.capitalize
              callbacks[name] = "function(request){#{code}}"
            end
          end
          callbacks
        end

Defined in actionpack/lib/action_view/helpers/prototype_helper.rb line 635 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::PrototypeHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close