instance method
[]
Ruby on Rails 4.1.16
Since v4.1.16 Last seen in v7.0.10Signature
[](fs_name)
No documentation comment.
Parameters
-
fs_namereq
Source
# File activerecord/lib/active_record/fixtures.rb, line 471
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 471
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FixtureSet::ClassCache