rails/rails — pull request #6107 by gazay (2012-05-01 21:39:43+00:00)
Title: Make callstack attribute optional in AS:Deprecation

It's unnecessary to send caller from all places where used ActiveSupport::Deprecation.warn, because we can only call `caller(2)` from `warn` method and get the same callstack:

```ruby

def dep(cal = nil)
cal = caller(2) unless cal
cal
end

def dep1
dep
end

def dep2
dep caller
end

puts dep1 == dep2
# => true
```