Sha256: 7da202475eaa07282bfc1d58992fb0341c73b315999903c65abfa9619f12fe39
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception include CleanPagination def index paginate total_items, max_range do |limit, offset| action limit, offset render json: [limit, offset], status: index_status end end def total_items raise 'stub me' end def max_range raise 'stub me' end def action limit, offset # gets spied on end def index_status 200 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clean_pagination-0.0.9 | test/dummy/app/controllers/application_controller.rb |
clean_pagination-0.0.8 | test/dummy/app/controllers/application_controller.rb |