Method: Fixie::Model#fixture
- Defined in:
- lib/fixie.rb
#fixture(fixture_name) ⇒ Object
This will return an instance of this class loaded from the fixtures matching the name
152 153 154 155 156 157 158 159 160 |
# File 'lib/fixie.rb', line 152 def fixture(fixture_name) @fixtures ||= {} fixture = @fixtures[fixture_name] if fixture fixture else @fixtures[fixture_name] = instantiate_from_fixture(Fixie.fixture(fixture_db_name, fixture_table_name, fixture_name)) end end |