module RailsExt class << self def create_public_symlinks! re_dir = File.expand_path "#{File.dirname __FILE__}/../../public/rails_ext" app_dir = File.expand_path "#{RAILS_ROOT}/public/rails_ext" system "ln -nfs #{re_dir} #{app_dir}" end end end