Module: Watarase::ImageHolder::Macro

Defined in:
lib/watarase/image_holder.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_image_holderObject



15
16
17
18
19
# File 'lib/watarase/image_holder.rb', line 15

def acts_as_image_holder
  self.send(:include, Watarase::ImageHolder::ExtensionWhitelist)
  self.send(:include, Watarase::ImageHolder::Store)
  self.send(:before_save, :prepare_image)
end