lib/ronin/model/has_authors/has_authors.rb in ronin-1.0.0 vs lib/ronin/model/has_authors/has_authors.rb in ronin-1.1.0.rc1
- old
+ new
@@ -31,10 +31,12 @@
# Adds the `authors` relationship and {ClassMethods} to the model.
#
# @param [Class] base
# The model.
#
+ # @api semipublic
+ #
def self.included(base)
base.send :include, Model
base.send :extend, ClassMethods
base.module_eval do
@@ -55,9 +57,11 @@
#
# @example
# author :name => 'Anonymous',
# :email => 'anon@example.com',
# :organization => 'Anonymous LLC'
+ #
+ # @api public
#
def author(attributes)
self.authors.new(attributes)
end
end