Sha256: 5e8ba6b255b03fcfd65a1aebe140a1bbbb0aee469f4be7f49f9b4d3b429d0dbe
Contents?: true
Size: 338 Bytes
Versions: 20
Compression:
Stored size: 338 Bytes
Contents
class Blog < ActiveRecord::Base has_many :posts has_many :comments, :through => :posts attr_accessible :name, :subdomain searchable :include => { :posts => :author } do string :subdomain text :name end # Make sure that includes are added to with multiple searchable calls searchable(:include => :comments) {} end
Version data entries
20 entries across 20 versions & 4 rubygems