Sha256: 5098f2a16df8daa4098d6d474781ffd32493e6d8fb7eed9f4de6754cce90ee58

Contents?: true

Size: 709 Bytes

Versions: 10

Compression:

Stored size: 709 Bytes

Contents

module ::RailsConnector
  class CloudEngine < Rails::Engine
    initializer "cloud_connector.add_assets" do |app|
      # Specify which file should be precompiled for packaging
      app.config.assets.precompile += %w( infopark_editing.js infopark_editing.css )
    end

    initializer "rails issue 4911 workaround" do
      if Rails.version < '4'
        max_size = [ActiveSupport::Cache::FileStore::FILENAME_MAX_SIZE, 228].min
        silence_warnings { ActiveSupport::Cache::FileStore::FILENAME_MAX_SIZE = max_size }
      end
    end

    initializer "widgets.attach_router" do |app|
      ::RailsConnector::WidgetRenderer.class_eval do
        include app.routes.url_helpers
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.1.0 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-7.0.2 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.4 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.3.1.36404185 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.2.1.125136549 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.1.3.22208381 lib/rails_connector/cloud_engine.rb
infopark_cloud_connector-6.9.0.3.197272233 lib/rails_connector/cloud_engine.rb