lib/azeroth/options.rb in azeroth-0.7.0 vs lib/azeroth/options.rb in azeroth-0.7.1

- old
+ new

@@ -16,11 +16,12 @@ # @see Resourceable::ClassMethods#resource_for DEFAULT_OPTIONS = { only: %i[create destroy edit index new show update], except: [], decorator: true, - before_save: nil + before_save: nil, + build_with: nil }.freeze with_options DEFAULT_OPTIONS # Actions to be built @@ -75,9 +76,16 @@ # Block or method name to be run before save # # The given method or block will be ran # before committing changes in models # to database + # + # @return [Symbol,Proc] + + # @method build_with + # @api private + # + # Block or method name to be ran when building the resource # # @return [Symbol,Proc] end end