X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/252c2f70225595312151bcf77ee7c8f5aac0c831..8af14faa49deed681fa835dd6bd3f77316b44a55:/vendor/plugins/file_column/init.rb diff --git a/vendor/plugins/file_column/init.rb b/vendor/plugins/file_column/init.rb index d31ef1b9c..6ecbba5f6 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?(ActionRecord::Base) + ActiveRecord::Base.send(:include, FileColumn) + ActiveRecord::Base.send(:include, FileColumn::Validations) +end + +if defined?(ActionView::Base) + ActionView::Base.send(:include, FileColumnHelper) +end