Sha256: f4f2460dd90a7240d21fc4f34b1c64f2b07906253881b18e1fdcfad7a777a9d7
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
module Adhocracy module Acceptable extend ActiveSupport::Concern def accept if pending? member.join_group(group) update_attributes(pending: false, accepted: true, declined: false) end end def decline if pending? update_attributes(pending: false, accepted: false, declined: true) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
adhocracy-0.4 | lib/adhocracy/acceptable.rb |
adhocracy-0.3.1 | lib/adhocracy/acceptable.rb |
adhocracy-0.3.0 | lib/adhocracy/acceptable.rb |
adhocracy-0.2.0 | lib/adhocracy/acceptable.rb |