aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-24 18:07:51 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-24 18:40:59 +0900
commitf228ab5574e995f8188783562bf2cdd98c9138b4 (patch)
treef5b3d9cd4ee6d0db79cb11158acd801011a49755 /activerecord/test/models
parent4bdcd7a6549aa32949d94cf24ed7c1c9a9c09f07 (diff)
downloadrails-f228ab5574e995f8188783562bf2cdd98c9138b4.tar.gz
rails-f228ab5574e995f8188783562bf2cdd98c9138b4.tar.bz2
rails-f228ab5574e995f8188783562bf2cdd98c9138b4.zip
Goodbye there, very special rubbish!
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/category.rb5
-rw-r--r--activerecord/test/models/comment.rb6
-rw-r--r--activerecord/test/models/post.rb6
-rw-r--r--activerecord/test/models/project.rb3
4 files changed, 1 insertions, 19 deletions
diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb
index f8c8ebb70c..7da39a8e33 100644
--- a/activerecord/test/models/category.rb
+++ b/activerecord/test/models/category.rb
@@ -31,9 +31,4 @@ class Category < ActiveRecord::Base
end
class SpecialCategory < Category
-
- def self.what_are_you
- 'a special category...'
- end
-
end
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb
index 4b2015fe01..ede5fbd0c6 100644
--- a/activerecord/test/models/comment.rb
+++ b/activerecord/test/models/comment.rb
@@ -29,16 +29,10 @@ class Comment < ActiveRecord::Base
end
class SpecialComment < Comment
- def self.what_are_you
- 'a special comment...'
- end
end
class SubSpecialComment < SpecialComment
end
class VerySpecialComment < Comment
- def self.what_are_you
- 'a very special comment...'
- end
end
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb
index ce980ada8b..5a5c427807 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -16,11 +16,7 @@ class Post < ActiveRecord::Base
scope :limit_by, lambda {|l| limit(l) }
- belongs_to :author do
- def greeting
- "hello"
- end
- end
+ belongs_to :author
belongs_to :author_with_posts, -> { includes(:posts) }, :class_name => "Author", :foreign_key => :author_id
belongs_to :author_with_address, -> { includes(:author_address) }, :class_name => "Author", :foreign_key => :author_id
diff --git a/activerecord/test/models/project.rb b/activerecord/test/models/project.rb
index af3ec4be83..90273adafc 100644
--- a/activerecord/test/models/project.rb
+++ b/activerecord/test/models/project.rb
@@ -40,7 +40,4 @@ class Project < ActiveRecord::Base
end
class SpecialProject < Project
- def hello_world
- "hello there!"
- end
end