lib/tokens/token.rb in tokens-1.0.0 vs lib/tokens/token.rb in tokens-1.1.0
- old
+ new
@@ -1,8 +1,11 @@
class Token < ActiveRecord::Base
belongs_to :tokenizable, :polymorphic => true
serialize :data
+ attr_accessible :name, :token, :data, :expires_at
+ attr_readonly :tokenizable_id, :tokenizable_type
+
def to_s
token
end
def expired?