mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c045eebd5d
* Refactor log subscriber, use select! to avoid a new object
* Remove deprecation messages related to AS::Deprecation behavior
This was added about 2 years ago for Rails 3:
d4c7d3fd94
* Remove some not used requires
* Refactor delegate to avoid string conversions and if statements inside each block
13 lines
357 B
Ruby
13 lines
357 B
Ruby
module ActiveSupport
|
|
# A class with no predefined methods that behaves similarly to Builder's
|
|
# BlankSlate. Used for proxy classes.
|
|
class BasicObject < ::BasicObject
|
|
undef_method :==
|
|
undef_method :equal?
|
|
|
|
# Let ActiveSupport::BasicObject at least raise exceptions.
|
|
def raise(*args)
|
|
::Object.send(:raise, *args)
|
|
end
|
|
end
|
|
end
|