Method: Parsistence::Query#fetch
- Defined in:
- lib/Parsistence/Query.rb
#fetch(&callback) ⇒ Object
179 180 181 182 183 184 185 186 187 |
# File 'lib/Parsistence/Query.rb', line 179 def fetch(&callback) if @limit && @limit == 1 fetchOne(&callback) else fetchAll(&callback) end self end |