Skip to content

Commit

Permalink
Rails 5.2 seems to be requiring the apps to have a concrete name
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Oct 13, 2017
1 parent a0fe134 commit 23e4737
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions kaminari-core/test/fake_app/rails_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@
require 'active_record/railtie' if defined? ActiveRecord

# config
app = Class.new(Rails::Application)
app.config.secret_key_base = app.config.secret_token = '3b7cd727ee24e8444053437c36cc66c4'
app.config.session_store :cookie_store, key: '_myapp_session'
app.config.active_support.deprecation = :log
app.config.eager_load = false
# Rails.root
app.config.root = File.dirname(__FILE__)
class KaminariTestApp < Rails::Application
config.secret_key_base = config.secret_token = '3b7cd727ee24e8444053437c36cc66c4'
config.session_store :cookie_store, key: '_myapp_session'
config.active_support.deprecation = :log
config.eager_load = false
# Rails.root
config.root = File.dirname(__FILE__)
end
Rails.backtrace_cleaner.remove_silencers!
app.initialize!
Rails.application.initialize!

# routes
app.routes.draw do
Rails.application.routes.draw do
resources :users do
get 'index_text(.:format)', action: :index_text, on: :collection
end
Expand Down

0 comments on commit 23e4737

Please sign in to comment.