class method self.batch

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v6.1.7.10

Signature

self.batch(owner, path, line)

No documentation comment.

Parameters

owner req
path req
line req
Source
# 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

Defined in activemodel/lib/active_model/attribute_methods.rb line 340 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::AttributeMethods::ClassMethods::CodeGenerator

Type at least 2 characters to search.

↑↓ navigate · open · esc close