Remove unused scopes

This commit is contained in:
Andy Atkinson 2015-10-01 23:42:42 -05:00
parent dd57f60de9
commit 73ec5a26a3
3 changed files with 0 additions and 10 deletions

@ -144,9 +144,6 @@ def ratings
has_many :posts_with_signature, ->(record) { where("posts.title LIKE ?", "%by #{record.name.downcase}%") }, class_name: "Post"
scope :relation_include_posts, -> { includes(:posts) }
scope :relation_include_tags, -> { includes(:tags) }
attr_accessor :post_log
after_initialize :set_post_log

@ -21,9 +21,3 @@ class LiveParrot < Parrot
class DeadParrot < Parrot
belongs_to :killer, :class_name => 'Pirate', foreign_key: :killer_id
end
class FunkyParrot < Parrot
before_destroy do
raise "before_destroy was called"
end
end

@ -37,7 +37,6 @@ class Person < ActiveRecord::Base
has_many :essays, primary_key: "first_name", foreign_key: "writer_id"
scope :males, -> { where(:gender => 'M') }
scope :females, -> { where(:gender => 'F') }
end
class PersonWithDependentDestroyJobs < ActiveRecord::Base