Sha256: 86c09c33cb318a250f8687f0c9230387b743fbd8b635ca1644317037488eada4
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'sequel' require 'forwardable' module Rack::Scaffold::Adapters class Sequel < Base extend Forwardable def_delegators :@klass, :count, :all, :find, :[], :create!, :update!, :destroy! class << self def ===(model) ::Sequel::Model === model end def resources(model) model end end def singular @klass.name end def plural @klass.table_name end def paginate(limit, offset) @klass.limit(limit, offset) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-scaffold-0.0.1 | ./lib/rack/scaffold/adapters/sequel.rb |