Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
require "kaminari-sinatra" after other all gems
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Feb 12, 2017
1 parent f511a0f commit 6284d3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gem "activerecord-simple_index_name"
gem "bundler"
gem "dalli"
gem "kaminari-activerecord", ">= 1.0.0"
gem "kaminari-sinatra", ">= 1.0.0"
gem "kaminari-sinatra", ">= 1.0.0", require: false
gem "newrelic_rpm"
gem "rollbar"
gem "rroonga"
Expand Down
6 changes: 6 additions & 0 deletions config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
require "bundler/setup"
Bundler.require(:default, RACK_ENV)

# After `require "kaminari/sinatra"`, "Rails" module is defined in rails-html-sanitizer
# https://github.com/rails/rails-html-sanitizer/blob/v1.0.3/lib/rails/html/sanitizer.rb#L1
# error occurred following
# https://github.com/intridea/hashie/blob/v3.5.3/lib/hashie.rb#L60
require "kaminari/sinatra"

##
# ## Enable devel logging
#
Expand Down

0 comments on commit 6284d3d

Please sign in to comment.