lib/memento/session.rb in memento-0.4.0 vs lib/memento/session.rb in memento-0.4.1

- old
+ new

@@ -2,9 +2,12 @@ class Session < ActiveRecord::Base self.table_name = "memento_sessions" has_many :states, :class_name => "Memento::State", :dependent => :delete_all, :order => "id DESC" belongs_to :user + + attr_accessible nil + validates_presence_of :user def add_state(action_type, record) states.store(action_type, record) end \ No newline at end of file