Sha256: f0c6f4277b36b0615d39e03e7bc39893a83bfbe2929b2c49cc484ba07271d5c4
Contents?: true
Size: 814 Bytes
Versions: 3
Compression:
Stored size: 814 Bytes
Contents
module RevelryContent class Engine < ::Rails::Engine engine_name 'revelry_content' isolate_namespace RevelryContent config.autoload_paths << File.expand_path('../../', __FILE__) CONFIG_ASSET = 'revelry_content/config' # Require the route config to load before we load the config (we need route # helpers to generate that file) initializer 'revelry.content_depend_on_routes', after: "sprockets.environment" do if Rails.application.assets.respond_to?(:register_preprocessor) routes = Rails.root.join('config','routes.rb') Rails.application.assets.register_preprocessor 'application/javascript', :'revelry.content_depend_on_routes' do |ctx,data| require routes if ctx.logical_path == CONFIG_ASSET data end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
revelry_content-0.0.1.2 | lib/revelry_content/engine.rb |
revelry_content-0.0.1.1 | lib/revelry_content/engine.rb |
revelry_content-0.0.1 | lib/revelry_content/engine.rb |