{"action":"closed","issue":{"url":"https://api.github.com/repos/rails/rails/issues/22292","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/22292/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/22292/comments","events_url":"https://api.github.com/repos/rails/rails/issues/22292/events","html_url":"https://github.com/rails/rails/issues/22292","id":116919261,"number":22292,"title":"ROR 4.2.5 updated from 4.2.4: undefined method `attributes' for false:FalseClass","user":{"login":"thebravoman","id":1311493,"avatar_url":"https://avatars.githubusercontent.com/u/1311493?v=3","gravatar_id":"","url":"https://api.github.com/users/thebravoman","html_url":"https://github.com/thebravoman","followers_url":"https://api.github.com/users/thebravoman/followers","following_url":"https://api.github.com/users/thebravoman/following{/other_user}","gists_url":"https://api.github.com/users/thebravoman/gists{/gist_id}","starred_url":"https://api.github.com/users/thebravoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebravoman/subscriptions","organizations_url":"https://api.github.com/users/thebravoman/orgs","repos_url":"https://api.github.com/users/thebravoman/repos","events_url":"https://api.github.com/users/thebravoman/events{/privacy}","received_events_url":"https://api.github.com/users/thebravoman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-14T11:12:06Z","updated_at":"2016-04-16T16:08:36Z","closed_at":"2016-04-16T16:08:36Z","body":"Just updated from 4.2.4 to 4.2.5 and run the tests.\r\n\r\nThree tests failed on Idea.destroy_all, where Idea is my object (Idea is shown below)\r\n\r\n```ruby\r\nIdea.destroy_all\r\n  Idea Load (0.3ms)  SELECT `ideas`.* FROM `ideas` WHERE `ideas`.`deleted_at` IS NULL\r\n   (0.3ms)  BEGIN\r\n  Idea Load (0.5ms)  SELECT  `ideas`.* FROM `ideas` WHERE `ideas`.`id` = 1 LIMIT 1\r\n  SQL (0.6ms)  UPDATE `ideas` SET `deleted_at` = '2015-11-14 11:05:36', `updated_at` = '2015-11-14 11:05:36' WHERE `ideas`.`id` = 1\r\n   (42.6ms)  ROLLBACK\r\nNoMethodError: undefined method `attributes' for false:FalseClass\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activerecord-4.2.5/lib/active_record/attribute_set.rb:68:in `=='\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activemodel-4.2.5/lib/active_model/callbacks.rb:142:in `!='\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activemodel-4.2.5/lib/active_model/callbacks.rb:142:in `block (2 levels) in _define_after_model_callback'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:107:in `call'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:107:in `call'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:227:in `block (2 levels) in halting_and_conditional'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:227:in `each'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:227:in `all?'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:227:in `block in halting_and_conditional'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `call'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `block in call'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `each'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `call'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in `__run_callbacks__'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_destroy_callbacks'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n... 18 levels...\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5/lib/rails/commands/console.rb:9:in `start'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:68:in `console'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /home/kireto/robopartans/reduco/fllcasts/bin/rails:10:in `<top (required)>'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `block in load'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /home/kireto/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /home/kireto/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /home/kireto/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n```\r\n\r\nThe idea class:\r\n```ruby\r\nclass Idea < ActiveRecord::Base\r\n\tinclude Sanitizer\r\n\r\n\tvalidates_presence_of :title\r\n\tvalidates_length_of :description, :minimum => 5, :too_short => \"The Description must be atleas 5 characters.\"\r\n\r\n\tbefore_save :sanitize\r\n\r\n\tbelongs_to :user\r\n\r\n\tdefault_scope { where(:deleted_at => nil) }\r\nend\r\n```\r\n\r\nThe db/schema:\r\n```ruby\r\ncreate_table \"ideas\", force: :cascade do |t|\r\n    t.string   \"title\",       limit: 255\r\n    t.text     \"description\", limit: 65535\r\n    t.datetime \"created_at\",                null: false\r\n    t.datetime \"updated_at\",                null: false\r\n    t.integer  \"user_id\",     limit: 4,     null: false\r\n    t.datetime \"deleted_at\"\r\n  end\r\n```"}}