instance method []

Ruby on Rails 4.2.9

Since v4.1.16 Last seen in v7.0.10

Available in: v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

[](fs_name)

No documentation comment.

Parameters

fs_name req
Source
# File activerecord/lib/active_record/fixtures.rb, line 473
      def [](fs_name)
        @class_names.fetch(fs_name) {
          klass = default_fixture_model(fs_name, @config).safe_constantize
          insert_class(@class_names, fs_name, klass)
        }
      end

Defined in activerecord/lib/active_record/fixtures.rb line 473 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::FixtureSet::ClassCache

Type at least 2 characters to search.

↑↓ navigate · open · esc close