kch / file_column forked from tekin/file_column

fork of file_column plugin, patched up with edge rails compatibility, locales, new features (see wiki)

Caio Chassot (author)
Thu May 07 13:51:57 -0700 2009
commit  a9ca885b2a82e7f1dd0461cfe12307c87ae3ba75
tree    1e764ff0c92b5c26da2af2e8cc76641fe64af1e8
parent  ddd4cae314d7132ac2a9d7b15dbbc4e863f88db3
file_column / install.rb
100644 15 lines (10 sloc) 0.51 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'pathname'
 
def path(s); Pathname.new(s).cleanpath.to_s end
 
this_path = path File.dirname(__FILE__)
require path(this_path + '/../../../config/boot')
require 'fileutils'
 
config_path = path("#{RAILS_ROOT}/config")
initializers_path = path("#{config_path}/initializers")
initializer_template_path = path(this_path + "/install/initializer.rb")
initializer_destination = path("#{initializers_path}/file_column.rb")
 
FileUtils.cp initializer_template_path, initializer_destination