lib/azeroth/resourceable/class_methods.rb in azeroth-0.0.6 vs lib/azeroth/resourceable/class_methods.rb in azeroth-0.0.7

- old
+ new

@@ -9,9 +9,18 @@ module ClassMethods # Adds resource methods for resource # # @param name [String, Symbol] Name of the resource # @param options [Hash] + # + # @return [Array<MethodDefinition>] + # + # @example + # class DocumentsController < ApplicationController + # include Azeroth::Resourceable + # + # resource_for :document + # end def resource_for(name, **options) Builder.new( self, name, Azeroth::Options.new(options) ).build end