X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bed9cd00ed166ce346da4b8a9b654ddf86e64e70..90a7efcf4d5892299dc9a756a252fa13a1951709:/vendor/plugins/file_column/init.rb?ds=sidebyside diff --git a/vendor/plugins/file_column/init.rb b/vendor/plugins/file_column/init.rb index d31ef1b9c..0610d486c 100644 --- a/vendor/plugins/file_column/init.rb +++ b/vendor/plugins/file_column/init.rb @@ -8,6 +8,11 @@ require 'file_column_helper' require 'validations' require 'test_case' -ActiveRecord::Base.send(:include, FileColumn) -ActionView::Base.send(:include, FileColumnHelper) -ActiveRecord::Base.send(:include, FileColumn::Validations) \ No newline at end of file +if defined?(ActiveRecord::Base) + ActiveRecord::Base.send(:include, FileColumn) + ActiveRecord::Base.send(:include, FileColumn::Validations) +end + +if defined?(ActionView::Base) + ActionView::Base.send(:include, FileColumnHelper) +end