app/models/c2/informant/locus.rb in c2-0.1.5 vs app/models/c2/informant/locus.rb in c2-0.1.6
- old
+ new
@@ -36,10 +36,10 @@
def entries
klass.all
end
def entries_page(page=1,per=10)
- entries_as_json(entries.offset((page - 1) * per).limit(per))
+ entries_as_json(entries)
end
def entry_as_json(entry)
data = self.elements.inject({}) do |memo, element|
memo[element.name] = entry.send(element.name) if entry.respond_to?(element.name)
\ No newline at end of file