lib/ntail/http_method.rb in ntail-0.0.11 vs lib/ntail/http_method.rb in ntail-0.0.12
- old
+ new
@@ -19,16 +19,16 @@
http_method
end
end
# this ensures the below module methods actually make sense...
- raise "Class #{base.name} should implement instance method 'http_method'" unless base.instance_methods.include? 'http_method'
+ raise "Class #{base.name} should implement instance method 'http_method'" unless base.instance_methods.map(&:to_s).include? 'http_method'
end
end
def to_http_method_s
self.class.to_http_method_s(self.http_method)
end
end
-end
\ No newline at end of file
+end