Sha256: 40ab26084f4f52d0006ba9ca9b7c1a2b9e7d5a815e60a0124ad153edc938eac5

Contents?: true

Size: 272 Bytes

Versions: 22

Compression:

Stored size: 272 Bytes

Contents

class User < ActiveRecord::Base  
  include_and_extend SimpleRoles
  
  has_many :articles
  has_many :comments
  has_many :posts
  has_many :accounts, :foreign_key => "account_id"
end

# should not inherit from AR, since no need to persist Guest 
class Guest
  # ???
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/cantango/models/users.rb
cantango-0.9.4.6 spec/cantango/models/users.rb
cantango-0.9.4.5 spec/cantango/models/users.rb
cantango-0.9.4.3 spec/cantango/models/users.rb
cantango-0.9.4.2 spec/cantango/models/users.rb
cantango-0.9.4.1 spec/cantango/models/users.rb
cantango-0.9.4 spec/cantango/models/users.rb
cantango-0.9.3.2 spec/cantango/models/users.rb
cantango-0.8.9.5 spec/cantango/models/users.rb
cantango-0.8.9.4 spec/cantango/models/users.rb
cantango-0.8.9.3 spec/cantango/models/users.rb
cantango-0.8.9.2 spec/cantango/models/users.rb
cantango-0.8.9.1 spec/cantango/models/users.rb
cantango-0.8.9 spec/cantango/models/users.rb
cantango-0.8.8.1 spec/cantango/models/users.rb
cantango-0.8.8 spec/cantango/models/users.rb
cantango-0.8.7 spec/cantango/models/users.rb
cantango-0.8.6.2 spec/cantango/models/users.rb
cantango-0.8.6.1 spec/cantango/models/users.rb
cantango-0.8.6 spec/cantango/models/users.rb