Sha256: 97f06645b6ebb835ee65f04e10fd24b184610c9c5da5a10c600bd6364de7c918
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 Bytes
Contents
module Outpost module Controller module Callbacks def get_record @record = model.find(params[:id]) end def get_records @records = model.order("#{model.table_name}.#{order} #{sort_mode}") .page(params[:page]).per(self.list.per_page) end end # Callbacks end # Controller end # Outpost
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outpost-cms-0.0.3 | lib/outpost/controller/callbacks.rb |