Sha256: 47cde8defefcd099e84ca674c71837cab5f8ae7c42df4a6806ac67c387beb851
Contents?: true
Size: 530 Bytes
Versions: 7
Compression:
Stored size: 530 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 status: index_status end end def total_items raise 'stub me' end def max_range raise 'stub me' end def action limit, offset end def index_status 200 end end
Version data entries
7 entries across 7 versions & 1 rubygems