Sha256: 3f1e680980bea82ec8750f002d306e191d0383f53aec206fbafaf7e0720f547d
Contents?: true
Size: 443 Bytes
Versions: 30
Compression:
Stored size: 443 Bytes
Contents
module RailsExt class << self def create_public_symlinks! root = RAILS_ROOT public_rails_ext_path = File.expand_path "#{File.dirname __FILE__}/../../../public/rails_ext" raise "File #{public_rails_ext_path} don't exist!" unless File.exist? public_rails_ext_path public_rails_path = File.expand_path "#{root}/public/rails_ext" system "ln -nfs #{public_rails_ext_path} #{public_rails_path}" end end end
Version data entries
30 entries across 30 versions & 2 rubygems