Sha256: e25971458a86446f48e1aaf6e34bcc92747d3fd96a7da05e9ac38839b519e631
Contents?: true
Size: 287 Bytes
Versions: 21
Compression:
Stored size: 287 Bytes
Contents
class Post < ActiveRecord::Base has_many :comments if Rails.rails4? has_many :admin_comments, -> { where author: "Admin" }, :class_name => "Comment" else has_many :admin_comments, :class_name => "Comment", :conditions => { :author => "Admin" } end has_many :people end
Version data entries
21 entries across 21 versions & 4 rubygems