app/controllers/tramway/user/application_controller.rb in tramway-user-1.0.1.13 vs app/controllers/tramway/user/application_controller.rb in tramway-user-1.0.1.14
- old
+ new
@@ -4,10 +4,10 @@
layout ::Tramway::User.layout_path
protect_from_forgery with: :exception
before_action :application
def application
- @application = ::Tramway::Core.application.model_class.first
+ @application = ::Tramway::Core.application&.model_class&.first
end
end
end
end