diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-01 15:09:56 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-01 15:09:56 -0300 |
commit | 736bf14d7c15776f17f6e096dba5024a36d15580 (patch) | |
tree | 0db6556859595f586c2c171599713112b0268d1d /activerecord/test/models/developer.rb | |
parent | 0c527026308627652c42ed8a6f26a21d3bbc7a5b (diff) | |
download | rails-736bf14d7c15776f17f6e096dba5024a36d15580.tar.gz rails-736bf14d7c15776f17f6e096dba5024a36d15580.tar.bz2 rails-736bf14d7c15776f17f6e096dba5024a36d15580.zip |
Revert "Deprecating composed_of in ActiveRecord"
This reverts commit 44b313bc4e3762da64dde7894548f81c595147de.
Diffstat (limited to 'activerecord/test/models/developer.rb')
-rw-r--r-- | activerecord/test/models/developer.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb index 7ff769f0bf..4dc9fff9fd 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -73,9 +73,7 @@ end DeveloperSalary = Struct.new(:amount) class DeveloperWithAggregate < ActiveRecord::Base self.table_name = 'developers' - ActiveSupport::Deprecation.silence do - composed_of :salary, :class_name => 'DeveloperSalary', :mapping => [%w(salary amount)] - end + composed_of :salary, :class_name => 'DeveloperSalary', :mapping => [%w(salary amount)] end class DeveloperWithBeforeDestroyRaise < ActiveRecord::Base |