File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class Error < StandardError
1212 autoload :Auth , "rodauth/rails/auth"
1313 autoload :Mailer , "rodauth/rails/mailer"
1414
15+ @app = nil
16+ @middleware = true
17+ @tilt = true
18+
1519 class << self
1620 def lib ( **options , &block )
1721 c = Class . new ( Rodauth ::Rails ::App )
@@ -77,10 +81,6 @@ def configure
7781 yield self
7882 end
7983
80- @app = nil
81- @middleware = true
82- @tilt = true
83-
8484 attr_writer :app
8585 attr_writer :middleware
8686 attr_writer :tilt
Original file line number Diff line number Diff line change @@ -20,11 +20,7 @@ class InstallGeneratorTest < Rails::Generators::TestCase
2020 test "rodauth initializer" do
2121 run_generator
2222
23- assert_file "config/initializers/rodauth.rb" , <<~RUBY
24- Rodauth::Rails.configure do |config|
25- config.app = "RodauthApp"
26- end
27- RUBY
23+ assert_file "config/initializers/rodauth.rb" , /Rodauth::Rails.configure do |config|/
2824 end
2925
3026 test "sequel integration" do
You can’t perform that action at this time.
0 commit comments