lib/webmachine/resource/callbacks.rb in webmachine-1.6.0 vs lib/webmachine/resource/callbacks.rb in webmachine-2.0.0.beta

- old
+ new

@@ -263,11 +263,11 @@ # the 'identity' encoding. # @return [Hash] a hash of encodings and encoder methods/procs # @api callback # @see Encodings def encodings_provided - {IDENTITY => :encode_identity } + {IDENTITY => :encode_identity} end # If this method is implemented, it should return a list of # strings with header names that should be included in a given # response's Vary header. The standard conneg headers (Accept, @@ -358,11 +358,12 @@ # This method is called just before the final response is # constructed and sent. The return value is ignored, so any effect # of this method must be by modifying the response. # @api callback - def finish_request; end + def finish_request + end # # This method is called when an error is raised within a subclass of # {Webmachine::Resource}. # @@ -387,9 +388,8 @@ # @return [true,false,nil] Whether the Content-MD5 header # validates against the request body def validate_content_checksum nil end - end # module Callbacks end # class Resource end # module Webmachine