Class: NoWhen::Model::Log
- Inherits:
-
Object
- Object
- NoWhen::Model::Log
- Includes:
- DataMapper::Resource
- Defined in:
- lib/nowhen/model/log.rb
Class Method Summary collapse
Class Method Details
.find(query = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/nowhen/model/log.rb', line 9 def self.find(query={}) {:order => [:created_at.asc]}.each do |k,v| query[k] = v unless query.include? k end self.all query end |