- 17 Jun, 2015 3 commits
- 16 Jun, 2015 1 commit
-
-
Use association.klass.name instead of association.class_name to get the namespaced class name and therefore prevent: `Object.get_const(association_class_name)` from raising "uninitialized constant ParanoidHasOne" in the following situation: module Something def self.table_name_prefix "something_" end class ParanoidHasOne < ActiveRecord::Base acts_as_paranoid has_one :paranoid_belongs_to, dependent: :destroy end class ParanoidBelongsTo < ActiveRecord::Base acts_as_paranoid belongs_to :paranoid_has_one end end hasOne = Namespaced::ParanoidHasOne.create hasOne.destroy hasOne.restore(:recursive => true) # previously would explode
Landon Wilkins committed
-
- 08 Jun, 2015 1 commit
-
-
add GoRails video to readme documentation
Ryan Bigg committed
-
- 29 May, 2015 1 commit
-
-
Jared Smith committed
-
- 18 May, 2015 2 commits
-
-
Fix typo
Ryan Bigg committed -
Yusei Yamanaka committed
-
- 11 May, 2015 1 commit
-
-
partial indexes advice
Ryan Bigg committed
-
- 09 May, 2015 1 commit
-
-
Yann Hourdel committed
-
- 28 Apr, 2015 1 commit
-
-
Ryan Bigg committed
-
- 09 Apr, 2015 3 commits
- 08 Apr, 2015 1 commit
-
-
Show the 'restore' instance method also in the code snippets - `client.restore` - `client.restore(:recursive => true)`
Akshay S Murthy committed
-
- 23 Mar, 2015 1 commit
-
-
Ryan Bigg committed
-
- 18 Mar, 2015 1 commit
-
-
Fix counter cache behaviour on rails 4.2
Ryan Bigg committed
-
- 18 Feb, 2015 3 commits
-
-
✂ This has been removed and should no longer exist. https://github.com/radar/paranoia/pull/192#discussion_r24884921
Sergey Alekseev committed -
✂ I asked about `restore` in the [Notes](https://github.com/radar/paranoia/pull/192#issue-51914917) of the PR's description. Personally I don't need such a behaviour. So removing.
Sergey Alekseev committed -
remove unused parameter
John Hawthorn committed
-
- 17 Feb, 2015 10 commits
-
-
Sergey Alekseev committed
-
This will allow to detect counter cached columns changes in callbacks like `after_destroy` or `after_commit on: :destroy`.
Sergey Alekseev committed -
My goal is Rails 4.2 support and it works well with Rails 4.2. I’m leaving this bug not fixed for Rails 4.1 for the time being.
Sergey Alekseev committed -
Sergey Alekseev committed
-
This is a workaround actually. Since `ActiveRecord::CounterCache.each_counter_cached_associations` is private. We shouldn’t use it. Proposals for the proper fix are welcome. The reason the previous version stopped working is `affected_rows` returns `0` at [active_record/counter_cache.rb#L142](https://github.com/rails/rails/blo b/ef99d4cd3ecc58a8c1484740b2fb5447dbda23ab/activerecord/lib/active_recor d/counter_cache.rb#L142). If you follow the method call you’ll find that it’s called at [active_record/persistence.rb#L486](https://github.com/rails/rails/blob/ ef99d4cd3ecc58a8c1484740b2fb5447dbda23ab/activerecord/lib/active_record/ persistence.rb#L486). Probably we’d better override the return value in `ActiveRecord::Relation.delete_all` at [active_record/relation.rb#L481](https://github.com/rails/rails/blob/ef9 9d4cd3ecc58a8c1484740b2fb5447dbda23ab/activerecord/lib/active_record/rel ation.rb#L481).
Sergey Alekseev committed -
Sergey Alekseev committed
-
https://github.com/radar/paranoia/blame/1b051ae78793f3b62297b5adbaa9c1d0 0e6726e0/README.md#L154
Sergey Alekseev committed -
http://edgeguides.rubyonrails.org/4_2_release_notes.html#active-record-d eprecations > Deprecated passing Active Record objects to .find or .exists?. Call id on the objects first. Commits in Rails: https://github.com/rails/rails/commit/d92ae6ccca3bcfd73546d612efaea01127 0bd270 https://github.com/rails/rails/commit/d35f0033c7dec2b8d8b52058fb8db495d4 9596f7 https://github.com/rails/rails/commit/c0609dd0f0f0de604ac1ffeffdf5e3e0e7 356b35
Sergey Alekseev committed -
Sergey Alekseev committed
-
Update README about rails3 branch
Ryan Bigg committed
-
- 16 Feb, 2015 3 commits
-
-
Update README.md
Ryan Bigg committed -
Jim committed
-
Add a mention for https://github.com/radar/paranoia/issues/109#issuecomment-74455252
Jim committed
-
- 15 Feb, 2015 1 commit
-
-
Dmitry Babenko committed
-
- 13 Feb, 2015 1 commit
-
-
Dmitry Babenko committed
-
- 09 Feb, 2015 1 commit
-
-
I think this advice is misleading for most datasets and most RDBMS this is not necessary, and as per #206 doesn't even work. I have moved it to the wiki https://github.com/radar/paranoia/wiki/Custom-sentinel-values
John Hawthorn committed
-
- 24 Jan, 2015 2 commits
-
-
John Hawthorn committed
-
John Hawthorn committed
-
- 22 Jan, 2015 2 commits
-
-
This is a test for a case when a model has a has_one association with an after_validation callback, and we have failed validation. Paranoia will attempt to touch the deleted_at column on the child record that has been built but not saved. Fixes #180
Nick Anderson committed -
John Hawthorn committed
-