lib/roachclip.rb in roachclip-0.2.3 vs lib/roachclip.rb in roachclip-0.2.4
- old
+ new
@@ -45,10 +45,10 @@
options[:styles].each do |k,v|
self.send(:define_method, "#{name}_#{k}_path") do
time = self.attributes['updated_at'] || Time.now
time = time.to_i
- (path % [self.send(name).id.to_s, time]).chomp('-')
+ (path % [self.send("#{name}_#{k}").id.to_s, time]).chomp('-')
end
end
end
def validates_roachclip(*args)