diff options
author | Andy Atkinson <andyatkinson@gmail.com> | 2015-10-01 23:42:42 -0500 |
---|---|---|
committer | Andy Atkinson <andyatkinson@gmail.com> | 2015-10-01 23:42:45 -0500 |
commit | 73ec5a26a345846df52d547980f738d5442ef949 (patch) | |
tree | b1d700f1bfe2b192f41215217d687243f171ebc4 /activerecord/test/models | |
parent | dd57f60de92833e4f934aad07d8dc5acb5fbbe16 (diff) | |
download | rails-73ec5a26a345846df52d547980f738d5442ef949.tar.gz rails-73ec5a26a345846df52d547980f738d5442ef949.tar.bz2 rails-73ec5a26a345846df52d547980f738d5442ef949.zip |
Remove unused scopes
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/author.rb | 3 | ||||
-rw-r--r-- | activerecord/test/models/parrot.rb | 6 | ||||
-rw-r--r-- | activerecord/test/models/person.rb | 1 |
3 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index 8c1f14bd36..0d90cbb110 100644 --- a/activerecord/test/models/author.rb +++ b/activerecord/test/models/author.rb @@ -144,9 +144,6 @@ class Author < ActiveRecord::Base 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 diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb index b26035d944..ddc9dcaf29 100644 --- a/activerecord/test/models/parrot.rb +++ b/activerecord/test/models/parrot.rb @@ -21,9 +21,3 @@ end 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 diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index ad12f00d42..a4a9c6b0d4 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -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 |