Sha256: 3680c7614d527e72f327fd95b7ce60c306d09148c9c5a23e8b359a5874713939

Contents?: true

Size: 719 Bytes

Versions: 18

Compression:

Stored size: 719 Bytes

Contents

require 'fake_app/active_record/config' if defined? ActiveRecord
require 'fake_app/data_mapper/config' if defined? DataMapper
require 'fake_app/mongoid/config' if defined? Mongoid
require 'fake_app/mongo_mapper/config' if defined? MongoMapper

#models
require 'fake_app/active_record/models' if defined? ActiveRecord
require 'fake_app/data_mapper/models' if defined? DataMapper
require 'fake_app/mongoid/models' if defined? Mongoid
require 'fake_app/mongo_mapper/models' if defined? MongoMapper

class SinatraApp < Sinatra::Base
  register Kaminari::Helpers::SinatraHelpers

  get '/users' do
    @users = User.page params[:page]
    erb <<-ERB
<%= @users.map(&:name).join("\n") %>
<%= paginate @users %>
ERB
  end
end

Version data entries

18 entries across 18 versions & 8 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/kaminari-0.17.0/spec/fake_app/sinatra_app.rb
kaminari-0.17.0 spec/fake_app/sinatra_app.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/kaminari-0.16.3/spec/fake_app/sinatra_app.rb
kaminari-0.16.3 spec/fake_app/sinatra_app.rb
kaminari-0.16.2 spec/fake_app/sinatra_app.rb
kaminari-0.16.1 spec/fake_app/sinatra_app.rb
kaminari-0.16.0 spec/fake_app/sinatra_app.rb
kaminari-0.15.1 spec/fake_app/sinatra_app.rb
kaminari-0.15.0 spec/fake_app/sinatra_app.rb
kaminari-rails4-0.15.0 spec/fake_app/sinatra_app.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/kaminari-0.14.1/spec/fake_app/sinatra_app.rb
kaminari-0.14.1 spec/fake_app/sinatra_app.rb
kaminari-0.14.0 spec/fake_app/sinatra_app.rb