Permalink
Browse files

Goodbye there, very special rubbish!

  • Loading branch information...
1 parent 4bdcd7a commit f228ab5574e995f8188783562bf2cdd98c9138b4 @amatsuda amatsuda committed Jan 24, 2013
@@ -31,9 +31,4 @@ def self.what_are_you
end
class SpecialCategory < Category
-
- def self.what_are_you
- 'a special category...'
- end
-
end
@@ -29,16 +29,10 @@ def self.all_as_method
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
@@ -16,11 +16,7 @@ def greeting
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
@@ -40,7 +40,4 @@ def self.all_as_method
end
class SpecialProject < Project
- def hello_world
- "hello there!"
- end
end

0 comments on commit f228ab5

Please sign in to comment.