lib/generators/templates/version.rb in controlled_versioning-0.6.1 vs lib/generators/templates/version.rb in controlled_versioning-0.6.2

- old
+ new

@@ -6,11 +6,11 @@ has_many :version_children, as: :version validates :versionable, presence: true def accept - RevisionAccepter.new(self) - update_attributes(pending: false, approved: true) + Revision::Publisher.new(self).accept_revision unless initial? + update_attributes(pending: false, accepted: true) end def decline update_attributes(pending: false, declined: true) end