aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-24 21:23:49 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-24 21:23:49 +0900
commit4e05bfb8e254c3360a3ca4a6cb332995314338fe (patch)
treede90b1dc6852b1af8ebd8be99cb59206faf4de2e /activerecord/test/models
parentb7b27fc2a3d28c0113e27eea8615e52f723370cb (diff)
downloadrails-4e05bfb8e254c3360a3ca4a6cb332995314338fe.tar.gz
rails-4e05bfb8e254c3360a3ca4a6cb332995314338fe.tar.bz2
rails-4e05bfb8e254c3360a3ca4a6cb332995314338fe.zip
Unused methods, module, etc.
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/company_in_module.rb8
-rw-r--r--activerecord/test/models/person.rb8
-rw-r--r--activerecord/test/models/task.rb3
-rw-r--r--activerecord/test/models/topic.rb9
4 files changed, 0 insertions, 28 deletions
diff --git a/activerecord/test/models/company_in_module.rb b/activerecord/test/models/company_in_module.rb
index 461bb0de09..c50b1dff27 100644
--- a/activerecord/test/models/company_in_module.rb
+++ b/activerecord/test/models/company_in_module.rb
@@ -71,14 +71,6 @@ module MyApplication
i.belongs_to :nested_qualified_billing_firm, :class_name => 'MyApplication::Billing::Nested::Firm'
i.belongs_to :nested_unqualified_billing_firm, :class_name => 'Nested::Firm'
end
-
- validate :check_empty_credit_limit
-
- protected
-
- def check_empty_credit_limit
- errors.add_on_empty "credit_limit"
- end
end
end
end
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index c602ca5eac..141c60253e 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -91,14 +91,6 @@ class NestedPerson < ActiveRecord::Base
has_one :best_friend, :class_name => 'NestedPerson', :foreign_key => :best_friend_id
accepts_nested_attributes_for :best_friend, :update_only => true
-
- def comments=(new_comments)
- raise RuntimeError
- end
-
- def best_friend_first_name=(new_name)
- assign_attributes({ :best_friend_attributes => { :first_name => new_name } })
- end
end
class Insure
diff --git a/activerecord/test/models/task.rb b/activerecord/test/models/task.rb
index e36989dd56..935f76e12b 100644
--- a/activerecord/test/models/task.rb
+++ b/activerecord/test/models/task.rb
@@ -1,5 +1,2 @@
class Task < ActiveRecord::Base
- def updated_at
- ending
- end
end
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index f7f4cebc5a..317a474e02 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -26,12 +26,6 @@ class Topic < ActiveRecord::Base
end
}.new(self)
- module NamedExtension
- def two
- 2
- end
- end
-
has_many :replies, :dependent => :destroy, :foreign_key => "parent_id"
has_many :approved_replies, -> { approved }, class_name: 'Reply', foreign_key: "parent_id", counter_cache: 'replies_count'
has_many :replies_with_primary_key, :class_name => "Reply", :dependent => :destroy, :primary_key => "title", :foreign_key => "parent_title"
@@ -108,9 +102,6 @@ class ImportantTopic < Topic
end
class BlankTopic < Topic
- def blank?
- true
- end
end
module Web