lib/ronin/model/has_version/class_methods.rb in ronin-1.0.0 vs lib/ronin/model/has_version/class_methods.rb in ronin-1.1.0.rc1
- old
+ new
@@ -32,15 +32,19 @@
# The specific version to search for.
#
# @return [Array]
# The models with the specific version.
#
+ # @api public
+ #
def revision(version)
all(:version => version.to_s)
end
#
# Finds latest version of the model.
+ #
+ # @api public
#
def latest
first(:order => [:version.desc])
end
end