-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