Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

can't write unknown attribute :time in Rails 5 #13

@dfyx

Description

@dfyx

I have the following in my ApplicationController

around_action :delay_touching

def delay_touching
  ActiveRecord::Base.delay_touching { yield }
end

In Rails 4.2, everything works but after the update to Rails 5 I get the following error in lots of rspec tests:

Failure/Error: ActiveRecord::Base.delay_touching { yield }

ActiveModel::MissingAttributeError:
  can't write unknown attribute `{:time=>2016-07-19 13:46:06 UTC}

When I remove the around_action, all specs run as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions