No longer in need for a ⚠️ here
Only those who bundles kaminari-core without bundling kaminari-actionview, kaminari-sinatra, or kaminari-grape would see this warning today, but that's a rare case, and that should be intentional.
This commit is contained in:
parent
7de7b458c0
commit
9371c685d8
|
@ -8,22 +8,6 @@ rescue LoadError
|
||||||
#do nothing
|
#do nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
$stderr.puts <<-EOC if !defined?(::Rails::Railtie) && !defined?(Sinatra) && !defined?(Grape)
|
|
||||||
warning: no framework detected.
|
|
||||||
|
|
||||||
Your Gemfile might not be configured properly.
|
|
||||||
---- e.g. ----
|
|
||||||
Rails:
|
|
||||||
gem 'kaminari'
|
|
||||||
|
|
||||||
Sinatra/Padrino:
|
|
||||||
gem 'kaminari-sinatra'
|
|
||||||
|
|
||||||
Grape:
|
|
||||||
gem 'kaminari-grape'
|
|
||||||
|
|
||||||
EOC
|
|
||||||
|
|
||||||
# load Kaminari components
|
# load Kaminari components
|
||||||
require 'kaminari/config'
|
require 'kaminari/config'
|
||||||
require 'kaminari/exceptions'
|
require 'kaminari/exceptions'
|
||||||
|
|
Loading…
Reference in New Issue