module RedisModel::Adapters::Paperclip::Override

Public Instance Methods

define_paperclip_attributes_for(attachment) click to toggle source
# File lib/redis_model/adapters/paperclip.rb, line 42
def define_paperclip_attributes_for(attachment)
  redis_model_attribute :"#{attachment}_file_name", :string
  redis_model_attribute :"#{attachment}_file_size", :integer
  redis_model_attribute :"#{attachment}_content_type", :string
  redis_model_attribute :"#{attachment}_updated_at", :timestamp
end
has_attached_file(*args) click to toggle source
Calls superclass method
# File lib/redis_model/adapters/paperclip.rb, line 36
def has_attached_file(*args)
  define_paperclip_attributes_for(args.first)

  super(*args)
end