method

define_optimized_call

rails latest stable - Class: ActiveModel::AttributeMethods::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

define_optimized_call(mod, name, send, *extra)
private

Define a method `name` in `mod` that dispatches to `send` using the given `extra` args. This fallbacks `define_method` and `send` if the given names cannot be compiled.