instance method build_callbacks

Ruby on Rails 2.3.18

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 1091
      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 1091 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::PrototypeHelper

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close