self.attributes[self.pickup_column_name]
end
- def attr_y
+ def y
self.attributes['y']
end
end
def filename
- self.picture.filename + '?subdir=' + self.flip
+ q = self.flip.empty? ? '' : '?subdir=' + self.flip
+ self.picture.filename + q
end
def url
end
def opt_div_style
- "top:#{self.attr_y}px; left:#{self.x}px; z-index:#{self.z}; position: absolute;"
+ "top:#{self.y}px; left:#{self.x}px; z-index:#{self.z}; position: absolute;"
end
def opt_img_tag spot = nil, opacity = 20
self.picture.symbol_option
end
- def self.public_list_where
+ def self.public_list_where list
'panels.publish > 0'
end