Sha256: be12552649f464b663c1918e4fb0644c7397dd1e1666816b790428c2a43f1fd6
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
module MultiSync module Extensions require 'multi_sync/extensions/rails/railtie' if defined?(::Rails::Railtie) require 'multi_sync/extensions/rails/asset_sync' class Rails MultiSync.debug "Rails -v #{::Rails::VERSION::STRING} auto-detected" class << self def source_dir ::Rails.root.join('public', destination_dir) end def destination_dir ::Rails.application.config.assets.prefix.sub(/^\//, '') end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
multi_sync-0.0.4 | lib/multi_sync/extensions/rails.rb |
multi_sync-0.0.3 | lib/multi_sync/extensions/rails.rb |