]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/file_column/init.rb
When asked to edit an object centre on the correct location
[rails.git] / vendor / plugins / file_column / init.rb
1 # plugin init file for rails
2 # this file will be picked up by rails automatically and
3 # add the file_column extensions to rails
4
5 require 'file_column'
6 require 'file_compat'
7 require 'file_column_helper'
8 require 'validations'
9 require 'test_case'
10
11 if defined?(ActiveRecord::Base)
12   ActiveRecord::Base.send(:include, FileColumn)
13   ActiveRecord::Base.send(:include, FileColumn::Validations)
14 end
15
16 if defined?(ActionView::Base)
17   ActionView::Base.send(:include, FileColumnHelper)
18 end