aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-01-02 11:54:00 -0800
committerJosé Valim <jose.valim@gmail.com>2012-01-02 11:54:00 -0800
commit44df252382cc2301364495ff65563d23bcc1b070 (patch)
treef3dcb38780d337fafde11f4e758f27c54136059b /activerecord
parentdeaa68281c3737e03227aa127646c04acaa21eb6 (diff)
parent0f2f8003d2351079ce6ec0e706e474d8024839cc (diff)
downloadrails-44df252382cc2301364495ff65563d23bcc1b070.tar.gz
rails-44df252382cc2301364495ff65563d23bcc1b070.tar.bz2
rails-44df252382cc2301364495ff65563d23bcc1b070.zip
Merge pull request #4252 from lest/deprecate-activesupport-base64
remove ActiveSupport::Base64 in favor of ::Base64
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/session_store.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb
index e3bbd06f7e..1029bed064 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -51,11 +51,11 @@ module ActiveRecord
class SessionStore < ActionDispatch::Session::AbstractStore
module ClassMethods # :nodoc:
def marshal(data)
- ActiveSupport::Base64.encode64(Marshal.dump(data)) if data
+ ::Base64.encode64(Marshal.dump(data)) if data
end
def unmarshal(data)
- Marshal.load(ActiveSupport::Base64.decode64(data)) if data
+ Marshal.load(::Base64.decode64(data)) if data
end
def drop_table!
@@ -169,11 +169,11 @@ module ActiveRecord
# are implemented as class methods that you may override. By default,
# marshaling data is
#
- # ActiveSupport::Base64.encode64(Marshal.dump(data))
+ # ::Base64.encode64(Marshal.dump(data))
#
# and unmarshaling data is
#
- # Marshal.load(ActiveSupport::Base64.decode64(data))
+ # Marshal.load(::Base64.decode64(data))
#
# This marshaling behavior is intended to store the widest range of
# binary session data in a +text+ column. For higher performance,