Sha256: b75cc290b6af0e858a105290c2c1e40e13872789439e06be81378cd804746edf
Contents?: true
Size: 391 Bytes
Versions: 23
Compression:
Stored size: 391 Bytes
Contents
module ActiveMetadata class Note < ActiveRecord::Base self.table_name = "active_metadata_notes" class << self def by_group(group, *args) options = args.extract_options! order_by = options.delete(:order_by) || "created_at DESC" ActiveMetadata::Note.all(:conditions => options.merge(:group => group), :order => order_by) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems