Module: FixtureBuilder::Delegations::Configuration

Included in:
Builder, Namer
Defined in:
lib/fixture_builder/delegations.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


6
7
8
9
10
11
# File 'lib/fixture_builder/delegations.rb', line 6

def self.included(base)
  methods_to_delegate = [:fixtures_dir, :tables, :legacy_fixtures].concat(::FixtureBuilder::Configuration::ACCESSIBLE_ATTRIBUTES).flatten
  methods_to_delegate.each do |meth|
    base.delegate(meth, :to => :@configuration)
  end
end