lib/vestal_versions.rb in laserlemon-vestal_versions-0.2.6 vs lib/vestal_versions.rb in laserlemon-vestal_versions-0.3.0
- old
+ new
@@ -74,9 +74,17 @@
end
def revert_to!(value)
revert_to(value) && save
end
+
+ def last_changes
+ versions.at(version).changes
+ end
+
+ def last_changed
+ last_changes.keys
+ end
end
end
end
ActiveRecord::Base.send(:include, LaserLemon::VestalVersions)