Sha256: ccf2fb7186f0e966b132b26e9e7ea48a2675d88804228db3cd90519dfca9ae79

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

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

    initializer "notable_web" do |app|
      # use a proc instead of a string
      app.config.assets.precompile << proc { |path| path == "notable_web.js" }

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notable_web-0.1.0 lib/notable_web/engine.rb