method

interpolate

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Association
interpolate(sql, record = nil) public

No documentation

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

Hide source
# File activerecord/lib/active_record/associations/association.rb, line 146
      def interpolate(sql, record = nil)
        if sql.respond_to?(:to_proc)
          owner.instance_exec(record, &sql)
        else
          sql
        end
      end
Register or log in to add new notes.