Sha256: 22bd90b2e077bc8a060b2f5d44f440ebfa2889f46f7839f23376a969205c8455
Contents?: true
Size: 255 Bytes
Versions: 18
Compression:
Stored size: 255 Bytes
Contents
class Blog < ActiveRecord::Base belongs_to :author has_many :comments scope :featured, ->{ where(:featured => true) } scope :exclude_inactive, ->{ where(active: true) } def self.ransackable_scopes(auth = nil) [:exclude_inactive] end end
Version data entries
18 entries across 18 versions & 1 rubygems