lib/fiona7/engine.rb in infopark_fiona7-0.71.0.0 vs lib/fiona7/engine.rb in infopark_fiona7-0.71.0.1
- old
+ new
@@ -11,25 +11,30 @@
require "infopark_fiona_connector"
#require "rails_connector/engine"
#require "rails_connector/fiona_engine"
require "infopark_reactor"
+require "fiona7/initializer"
require "fiona7/mode_switch"
+require "fiona7/controller_helper"
require "fiona7/scrivito_patches/attribute_content"
require "fiona7/scrivito_patches/attribute_serializer"
require "fiona7/scrivito_patches/basic_obj"
require "fiona7/scrivito_patches/basic_widget"
require "fiona7/scrivito_patches/binary"
require "fiona7/scrivito_patches/cms_backend"
+require "fiona7/scrivito_patches/child_list_tag"
require "fiona7/scrivito_patches/cms_field_tag"
require "fiona7/scrivito_patches/controller_actions"
# different load order !!
#require "fiona7/scrivito_patches/cms_dispatch_controller"
require "fiona7/scrivito_patches/cms_rest_api"
require "fiona7/scrivito_patches/cms_routing"
+require "fiona7/scrivito_patches/layout_tags"
require "fiona7/scrivito_patches/link_parser"
require "fiona7/scrivito_patches/migrator"
+require "fiona7/scrivito_patches/page_config"
require "fiona7/scrivito_patches/type_computer"
require "fiona7/scrivito_patches/workspace"
require "fiona7/middleware/table_switching_middleware"
require "fiona7/middleware/server_detection_middleware"
@@ -113,11 +118,10 @@
class Engine < ::Rails::Engine
config.to_prepare do
# TODO: do some smart optimizations
- require "fiona7/initializer"
initializer = Fiona7::Initializer.new
initializer.initialize_system
end
initializer "fiona7.mode_switch" do |app|
@@ -153,10 +157,9 @@
ScrivitoHelper.send(:remove_method, old_method_name) if ScrivitoHelper.method_defined?(old_method_name)
end
end
initializer "fiona7.authorize_reactor" do |app|
-
ActionController::Base.__send__(:define_method, :rsession_auth) do
if !Fiona7.login
rsession.user_name = Fiona7.root unless rsession.user_name == Fiona7.root
end
end