Class: ActiveMetadata::Note
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActiveMetadata::Note
- Defined in:
- app/models/active_metadata/note.rb
Class Method Summary collapse
Class Method Details
.by_group(group, *args) ⇒ Object
7 8 9 10 11 |
# File 'app/models/active_metadata/note.rb', line 7 def by_group(group, *args) = args. order_by = .delete(:order_by) || "created_at DESC" ActiveMetadata::Note.all(:conditions => .merge(:group => group), :order => order_by) end |