app/controllers/calagator/application_controller.rb in koalagator-2.1.1 vs app/controllers/calagator/application_controller.rb in koalagator-3.0.0

- old
+ new

@@ -32,10 +32,10 @@ request.format.json? end def self.require_admin(options = {}) http_basic_authenticate_with( - options.reverse_merge( + **options.reverse_merge( name: Calagator.admin_username, password: Calagator.admin_password, if: proc { Calagator.admin_username && Calagator.admin_password } ) )