Upgrade to Rails 2.3.11. Fix a bug where the SVG-Edit button would not appear when editing S5 slideshows.
22 lines
576 B
Ruby
22 lines
576 B
Ruby
module ActiveSupport
|
|
if defined? ::BasicObject
|
|
# 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
|
|
else
|
|
class BasicObject #:nodoc:
|
|
instance_methods.each do |m|
|
|
undef_method(m) if m.to_s !~ /(?:^__|^nil\?$|^send$|^object_id$)/
|
|
end
|
|
end
|
|
end
|
|
end
|