method

batch

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

Method deprecated or moved

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

batch(owner, path, line)
public

No documentation available.

# File activemodel/lib/active_model/attribute_methods.rb, line 340
            def batch(owner, path, line)
              if owner.is_a?(CodeGenerator)
                yield owner
              else
                instance = new(owner, path, line)
                result = yield instance
                instance.execute
                result
              end
            end