Module: Golden::RejectedAtConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/golden/active_record_concerns/rejected_at_concern.rb

Instance Method Summary collapse

Instance Method Details

#cancel_reject!Object



12
13
14
# File 'lib/golden/active_record_concerns/rejected_at_concern.rb', line 12

def cancel_reject!
  update rejected_at: nil, rejected_by: nil
end

#not_rejected?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/golden/active_record_concerns/rejected_at_concern.rb', line 20

def not_rejected?
  !rejected?
end

#rejected?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/golden/active_record_concerns/rejected_at_concern.rb', line 16

def rejected?
  rejected_at?
end