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:
parent
de208a31c8
commit
a68b5463de
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue