Module: Fixie::Fixtures

Extended by:
Fixtures
Included in:
Fixtures
Defined in:
lib/fixie.rb

Instance Method Summary collapse

Instance Method Details

#define_fixture_accessor(db_name, table_name) ⇒ Object



139
140
141
142
143
# File 'lib/fixie.rb', line 139

def define_fixture_accessor(db_name, table_name)
  define_method(table_name) do |fixture_name|
    Fixie.fixture(db_name, table_name, fixture_name)
  end
end