- 24 Jan, 2015 1 commit
-
-
John Hawthorn committed
-
- 22 Jan, 2015 13 commits
-
-
John Hawthorn committed
-
John Hawthorn committed
-
John Hawthorn committed
-
We shouldn't be overriding this. soft-deleted objects are still persisted.
John Hawthorn committed -
The default implementation is already destroy || raise
John Hawthorn committed -
John Hawthorn committed
-
John Hawthorn committed
-
John Hawthorn committed
-
Thanks @kidlab
John Hawthorn committed -
John Hawthorn committed
-
John Hawthorn committed
-
There was a change in ActiveRecord#update_columns on latest rails so now it checks for `destroyed?` instead of `persisted?`. Paranoia can't override `destoyed?` like this anymore otherwise `update_columns` will always raise: ActiveRecord::ActiveRecordError: cannot update a destroyed record see https://github.com/rails/rails/commit/0f99aa615e11c50cc64b567f54cf64f59108c5e5
Washington Luiz committed -
John Hawthorn committed
-
- 19 Jan, 2015 3 commits
-
-
John Hawthorn committed
-
John Hawthorn committed
-
If the association object is a has_one relationship with an :as option, it will have a type attribute (see https://github.com/rails/docrails/blob/master/activerecord/lib/active_record/reflection.rb#L280). If this type attributes is present, that will be the type column on the polymorphic model. The foreign key can be found as an attribute on the association object.
Patrick Koperwas committed
-
- 23 Dec, 2014 1 commit
-
-
The changes in 40b7af58 were insufficient, this should do the trick.
Emil Sågfors committed
-
- 03 Dec, 2014 1 commit
-
-
John Hawthorn committed
-
- 28 Nov, 2014 1 commit
-
-
FIX: where("association_id", id) leads to invalid statement in postgres. where should just be given a hash.
Martin Sereinig committed
-
- 27 Nov, 2014 1 commit
-
-
This reverts commit 4004bd5e.
John Hawthorn committed
-
- 26 Nov, 2014 2 commits
-
-
John Hawthorn committed
-
This reverts commit 6881e750.
John Hawthorn committed
-
- 23 Nov, 2014 1 commit
-
-
Jozsef Nyitrai committed
-
- 21 Nov, 2014 1 commit
-
-
Ryan Bigg committed
-
- 13 Nov, 2014 1 commit
-
-
see https://github.com/radar/paranoia/issues/169
Braden Anderson committed
-
- 23 Sep, 2014 1 commit
-
-
refs https://github.com/radar/paranoia/issues/102
Georg Limbach committed
-
- 04 Sep, 2014 2 commits
-
-
Alexey Pokhozhaev committed
-
Alexey Pokhozhaev committed
-
- 28 Aug, 2014 3 commits
-
-
Emil Sågfors committed
-
Emil Sågfors committed
-
Emil Sågfors committed
-
- 25 Aug, 2014 1 commit
-
-
Peter Woo committed
-
- 22 Aug, 2014 3 commits
-
-
This appears to be a Rails ~> 4.0.8 bug, which is seemingly fixed in Rails 4.1.
Ryan Bigg committed -
Use fetch for sentinel_value Use DateTime for sentinel_value example Use an epoch. rails convers '0' or 0 to nil for datetime fields Add test for restore Update readme Move MYSQL note to bottom of readme update destroyed? for sentinel value
Shaun Dern committed -
This reverts commit 566b1cbd. Conflicts: README.md test/paranoia_test.rb
Aaron Jensen committed
-
- 29 Jul, 2014 1 commit
-
-
astronz committed
-
- 28 Jul, 2014 2 commits
-
-
Fixes #149
Neil E. Pearson committed -
Fixes #148
Michael Tucker committed
-
- 08 Jul, 2014 1 commit
-
-
touch_paranoia_column before really_destroy!-ing a record in rails 4.1.x. reloading already really_destroy!-ed associations is needed, otherwise super.destroy! will try to destroy these asociations (because they still exist on the activerecord object, but are already removed from the database) Fixes #143
Martin Sereinig committed
-