lib/railtie.rb in oh_my_log-1.0.3 vs lib/railtie.rb in oh_my_log-1.0.4
- old
+ new
@@ -9,10 +9,10 @@
end
end
#now let's start our gem(only if there is an initializer) after the rails initialize process
config.after_initialize do
- load Rails.root + "app/controllers/application_controller.rb"
+ load Rails.root + "app/controllers/application_controller.rb" unless defined?(::ApplicationController)
class ::ApplicationController
before_action :get__session__info
def get__session__info
user = nil
\ No newline at end of file