instance method array!

Ruby on Rails 2.4.1

Since v2.4.1 Last seen in v2.14.1

Available in: v2.4.1 v2.5.0 v2.6.4 v2.7.0 v2.8.0 v2.9.1 v2.10.2 v2.11.5 v2.12.0 v2.13.0 v2.14.1

Signature

array!(collection = [], *args)

No documentation comment.

Parameters

collection opt = []
args rest
Source
# File lib/jbuilder/jbuilder_template.rb, line 58
  def array!(collection = [], *args)
    options = args.first

    if args.one? && _partial_options?(options)
      partial! options.merge(collection: collection)
    else
      super
    end
  end

Defined in lib/jbuilder/jbuilder_template.rb line 58 · View on GitHub · Improve this page · Find usages on GitHub

Defined in JbuilderTemplate

Type at least 2 characters to search.

↑↓ navigate · open · esc close