Skip to content

issues Search Results · repo:jhawthorn/discard language:Ruby

Filter by

53 results
 (81 ms)

53 results

injhawthorn/discard (press backspace or delete to remove)

This is not a discard bug, but a side effect and I m just curious if anyone has any suggestions for best practices in this area. Simplest example -- picture a Post (id, deleted_at, in_reply_to_id, ...) ...
  • mjankowski
  • 2
  • Opened 
    on May 29, 2024
  • #106

Describe the bug A clear and concise description of what the bug is. To Reproduce image Expected behavior This recorded should be returned when I query for discarded users. even the generated SQL doesnt ...
  • Hanaffi
  • 1
  • Opened 
    on Mar 21, 2024
  • #105

Describe the bug Current implementation hides internal errors while discarding or undiscarding a record with bang method (e.g. ActiveModel::ValidationError). To Reproduce Steps to reproduce the behavior: ...
  • psmandzich
  • 1
  • Opened 
    on Nov 27, 2023
  • #100

Hello, I m not sure this is bug or not. Even a little information would be helpful. Describe the bug User.discarded = SELECT [users].* FROM [users] WHERE [users].[discarded_at] IS NULL AND [users].[discarded_at] ...
  • no1-knows
  • 3
  • Opened 
    on Oct 16, 2023
  • #98

Describe the bug https://github.com/jhawthorn/discard/blob/master/lib/discard/model.rb#L141 def undiscard seems to violate its expected return value constraints. # Discard the record in the database ...
  • chiperific
  • 1
  • Opened 
    on Aug 15, 2023
  • #95

I gotta believe you already have heard/thought of this strategy and made a choice, but I couldn t find it, so I m asking. We use timestamps on all our models, as Rails convention expects. Our Data Architect ...
  • chiperific
  • 1
  • Opened 
    on Jun 3, 2023
  • #94

Why not add a guard on discard method, like in aasm_state the option: guard. Guard option accept a method or a block. If can discard do the discard, unless raise an error. I don t know if there is now ...
  • gioggi
  • 1
  • Opened 
    on May 18, 2023
  • #93

Hi, Discard looks great! I was wondering if there were any plans to add Sequel support. Based on a super quick look at the codebase - there does not seem to be much ActiveRecord-specific code.
  • IsmailM
  • 1
  • Opened 
    on Nov 24, 2022
  • #90

Would be nice to be able to use dependent: :discard on associations For example has_one :referral_code, - { kept }, dependent: :discard
  • gsdean
  • 12
  • Opened 
    on Aug 31, 2022
  • #89

hello all I want to use it with papertrail so that I could track who delete this certain model and when did it just works? anyone have done this before?
  • laptopmutia
  • 1
  • Opened 
    on Aug 23, 2022
  • #88
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub