Parcourir la source

Do not inherit default_url_options from ApplicationController - fixes #120

Andrew Kane il y a 8 ans
Parent
commit
d98bb8cc71
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      app/controllers/blazer/base_controller.rb

+ 5 - 0
app/controllers/blazer/base_controller.rb

@@ -101,5 +101,10 @@ module Blazer
         action = resource.persisted? ? :edit : :new
         render action, status: :unprocessable_entity
       end
+
+      # do not inherit from ApplicationController - #120
+      def default_url_options
+        {}
+      end
   end
 end