lib/ronin/model/class_methods.rb in ronin-1.0.0 vs lib/ronin/model/class_methods.rb in ronin-1.1.0.rc1
- old
+ new
@@ -32,17 +32,21 @@
# @return [Symbol]
# The name to use in relationships.
#
# @since 1.0.0
#
+ # @api semipublic
+ #
def relationship_name
name = Support::Inflector.underscore(self.name.split('::').last)
return Support::Inflector.pluralize(name).to_sym
end
#
# Loads and initialize the resources.
+ #
+ # @api private
#
def load(records,query)
resources = super(records,query)
resources.each { |resource| resource.send :initialize }