lib/active_support/deprecation/reporting.rb in activesupport-3.0.0.beta vs lib/active_support/deprecation/reporting.rb in activesupport-3.0.0.beta2
- old
+ new
@@ -27,10 +27,11 @@
end
private
def deprecation_message(callstack, message = nil)
message ||= "You are using deprecated behavior which will be removed from the next major or minor release."
- "DEPRECATION WARNING: #{message}. #{deprecation_caller_message(callstack)}"
+ message += '.' unless message =~ /\.$/
+ "DEPRECATION WARNING: #{message} #{deprecation_caller_message(callstack)}"
end
def deprecation_caller_message(callstack)
file, line, method = extract_callstack(callstack)
if file