Sha256: 8e9da83be29a0eea156b2198fd7653699f37acf19ff192b29a123c820fdda53f

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

# encoding: UTF-8

class Post < ActiveRecord::Base
  include ArelHelpers::ArelTable
  has_many :comments
  has_many :favorites
end

class Comment < ActiveRecord::Base
  include ArelHelpers::ArelTable
  belongs_to :post
  belongs_to :author
end

class Author < ActiveRecord::Base
  include ArelHelpers::ArelTable
  has_one :comment
  has_and_belongs_to_many :collab_posts
end

class Favorite < ActiveRecord::Base
  include ArelHelpers::ArelTable
  belongs_to :post
end

class CollabPost < ActiveRecord::Base
  include ArelHelpers::ArelTable
  has_and_belongs_to_many :authors
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arel-helpers-2.1.1 spec/env/models.rb
arel-helpers-2.1.0 spec/env/models.rb
arel-helpers-2.0.2 spec/env/models.rb
arel-helpers-2.0.1 spec/env/models.rb