aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 16:33:50 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-29 20:13:37 +0000
commit7af719e81c46d06f50cd9b3caff38b945c5f2d84 (patch)
tree48186ea74bb6186d18b245598f0188a40a3ef901 /actionpack/test/fixtures
parentfd7ca98bb6218de42b821d48db083ea8c0e97d67 (diff)
downloadrails-7af719e81c46d06f50cd9b3caff38b945c5f2d84.tar.gz
rails-7af719e81c46d06f50cd9b3caff38b945c5f2d84.tar.bz2
rails-7af719e81c46d06f50cd9b3caff38b945c5f2d84.zip
Deprecate set_sequence_name in favour of self.sequence_name=
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r--actionpack/test/fixtures/company.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/fixtures/company.rb b/actionpack/test/fixtures/company.rb
index cd39ea7898..e29978801e 100644
--- a/actionpack/test/fixtures/company.rb
+++ b/actionpack/test/fixtures/company.rb
@@ -1,10 +1,10 @@
class Company < ActiveRecord::Base
has_one :mascot
attr_protected :rating
- set_sequence_name :companies_nonstd_seq
+ self.sequence_name = :companies_nonstd_seq
validates_presence_of :name
def validate
errors.add('rating', 'rating should not be 2') if rating == 2
end
-end \ No newline at end of file
+end