Module: Architect
- Defined in:
- lib/architect/engine.rb,
lib/architect/helpers.rb,
lib/architect/version.rb
Defined Under Namespace
Classes: Engine
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.worker_path(type) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/architect/helpers.rb', line 2 def self.worker_path(type) worker_filename = "#{type}_worker.js" return "architect/#{worker_filename.sub('.js', '.min.js')}" unless defined?(Rails) # Cacheable digest path on main domain because of same-origin policy File.join( Rails.application.config.assets.prefix, Rails.application.assets["workers/#{worker_filename}"].digest_path ) end |