1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

The Rails module could be defined some other gem than rails

kaminari depends on actionpack that in turn depends on rails-html-sanitizer the line https://github.com/amatsuda/kaminari/blob/master/lib/kaminari.rb#L36
returns true because rails-html-sanitizer defines the class Rails::Html::Sanitizer: https://github.com/rails/rails-html-sanitizer/blob/master/lib/rails-html-sanitizer.rb
see: https://github.com/amatsuda/kaminari/issues/796#issue-158648760

closes #796
This commit is contained in:
Akira Matsuda 2016-06-07 07:39:42 +09:00
parent de208a31c8
commit a68b5463de

View file

@ -34,7 +34,7 @@ require 'kaminari/models/configuration_methods'
require 'kaminari/hooks'
# if not using Railtie, call `Kaminari::Hooks.init` directly
if defined? Rails
if defined? ::Rails::Railtie
require 'kaminari/railtie'
require 'kaminari/engine'
end