Sha256: 2277a549759e6a17f0d4a2f48a9bbcd0457fa41e5bc73a59f64986c74d92d4f5

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

module NotableWeb
  class Engine < ::Rails::Engine
    isolate_namespace NotableWeb

    initializer "notable_web" do |app|
      if defined?(Sprockets) && Sprockets::VERSION >= "4"
        app.config.assets.precompile << "notable_web.js"
      else
        # use a proc instead of a string
        app.config.assets.precompile << proc { |path| path == "notable_web.js" }
      end

      NotableWeb.time_zone ||= Time.zone
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notable_web-0.2.0 lib/notable_web/engine.rb
notable_web-0.1.2 lib/notable_web/engine.rb
notable_web-0.1.1 lib/notable_web/engine.rb