Commit 593acb1d by aya-soft Committed by Prem Sichanugrist

Fixing issue #534 (now it works on Rails 2.3.8)

Closes #534, closes #538
parent 31df612d
......@@ -179,7 +179,9 @@ module Paperclip
module Glue
def self.included base #:nodoc:
base.extend ClassMethods
base.class_attribute :attachment_definitions
if base.respond_to?("class_attribute")
base.class_attribute :attachment_definitions
end
if base.respond_to?("set_callback")
base.send :include, Paperclip::CallbackCompatability::Rails3
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment