]> git.openstreetmap.org Git - rails.git/blob - app/models/session.rb
argh, caught out by annoying Ming 0.3>0.4 change. Recommit with correct line widths
[rails.git] / app / models / session.rb
1 class Session < ActiveRecord::Base
2   def [](key)
3     @data = Marshal.load(Base64.decode64(self.data)) unless @data
4
5     return @data[key]
6   end
7 end