Sha256: 14999fb1c09333bea63b2916b4ff6b81160630bb6589a4fca9c3991d8712b530
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
class HandlerResource < ActiveRecord::Base acts_as_versionable def when_accepting_anything increment(:accept_count) save end def when_accepting_an_initial_version update_attribute(:accepted, true) end def when_accepting_a_revision increment(:accepted_revisions_count) save end def when_declining_anything increment(:decline_count) save end def when_declining_an_initial_version update_attribute(:declined, true) end def when_declining_a_revision increment(:declined_revisions_count) save end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
controlled_versioning-0.10.0 | spec/dummy/app/models/handler_resource.rb |