instance method normalize_options!

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

normalize_options!(options)

No documentation comment.

Parameters

options req
Source
# File activesupport/lib/active_support/callbacks.rb, line 133
      def normalize_options!(options)
        options[:if] = Array.wrap(options[:if])
        options[:unless] = Array.wrap(options[:unless])

        options[:per_key] ||= {}
        options[:per_key][:if] = Array.wrap(options[:per_key][:if])
        options[:per_key][:unless] = Array.wrap(options[:per_key][:unless])
      end

Defined in activesupport/lib/active_support/callbacks.rb line 133 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Callbacks::Callback

Type at least 2 characters to search.

↑↓ navigate · open · esc close