Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (9 sloc) 409 Bytes
# plugin init file for rails
# this file will be picked up by rails automatically and
# add the file_column extensions to rails
ActiveRecord::Base.send(:include, UploadColumn)
ActionView::Base.send(:include, UploadColumnHelper)
ActionController::Base.send(:include, UploadColumnRenderHelper)
Mime::Type.register "image/png", :png
Mime::Type.register "image/jpeg", :jpg
Mime::Type.register "image/gif", :gif