Permalink
Browse files

replacing superclass_delegating_accessor with class_attribute

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent a64cc69 commit d8db5714aa7d3c094395e7152249d347c95bae0e Neeraj Singh committed with josevalim Jul 28, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 activerecord/lib/active_record/fixtures.rb
@@ -827,12 +827,12 @@ module TestFixtures
setup :setup_fixtures
teardown :teardown_fixtures
- superclass_delegating_accessor :fixture_path
- superclass_delegating_accessor :fixture_table_names
- superclass_delegating_accessor :fixture_class_names
- superclass_delegating_accessor :use_transactional_fixtures
- superclass_delegating_accessor :use_instantiated_fixtures # true, false, or :no_instances
- superclass_delegating_accessor :pre_loaded_fixtures
+ class_attribute :fixture_path
+ class_attribute :fixture_table_names
+ class_attribute :fixture_class_names
+ class_attribute :use_transactional_fixtures
+ class_attribute :use_instantiated_fixtures # true, false, or :no_instances
+ class_attribute :pre_loaded_fixtures
self.fixture_table_names = []
self.use_transactional_fixtures = true

0 comments on commit d8db571

Please sign in to comment.