Sha256: 58d2332e335279cf9ad31f9d34a7257103fba2e34e116d73333425242a9cb0be
Contents?: true
Size: 162 Bytes
Versions: 17
Compression:
Stored size: 162 Bytes
Contents
class Post < ActiveRecord::Base belongs_to :user def self.search(q) return where('posts.title LIKE :q OR posts.body LIKE :q', {:q => "%#{q}%"}) end end
Version data entries
17 entries across 17 versions & 1 rubygems