Class: ControlledVersioning::Version
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ControlledVersioning::Version
- Defined in:
- lib/generators/templates/version.rb
Instance Method Summary collapse
Instance Method Details
#accept ⇒ Object
10 11 12 13 |
# File 'lib/generators/templates/version.rb', line 10 def accept Revision::Publisher.new(self).accept_revision unless initial? update_attributes(pending: false, accepted: true) end |
#decline ⇒ Object
15 16 17 |
# File 'lib/generators/templates/version.rb', line 15 def decline update_attributes(pending: false, declined: true) end |