Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make read/write uploader methods public

Rails 3 apparently won't call callbacks that are private?
  • Loading branch information...
commit 084a8557ffe9b5c5ab5a181888a1dc0ed3ab967a 1 parent 408b5b6
@jnicklas jnicklas authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/carrierwave/orm/activerecord.rb
2  lib/carrierwave/orm/activerecord.rb
@@ -15,6 +15,8 @@ def mount_uploader(column, uploader, options={}, &block)
alias_method :read_uploader, :read_attribute
alias_method :write_uploader, :write_attribute
+ public :read_uploader
+ public :write_uploader
validates_integrity_of column if uploader_option(column.to_sym, :validate_integrity)
validates_processing_of column if uploader_option(column.to_sym, :validate_processing)
Please sign in to comment.
Something went wrong with that request. Please try again.