lib/rest_model/configuration.rb in rest_model-0.2.1 vs lib/rest_model/configuration.rb in rest_model-0.2.3
- old
+ new
@@ -4,10 +4,14 @@
attr_accessor :host
DefaultHandler = proc {|keys| keys}
+ def configure
+ yield self if block_given?
+ end
+
def convert_input_keys
@convert_input_keys || DefaultHandler
end
def convert_input_keys=(converter)
@@ -42,12 +46,8 @@
@date_time_format
end
def date_time_format=(format)
@date_time_format = format
- end
-
- def configure
- yield self if block_given?
end
end
end