Skip to content

Instantly share code, notes, and snippets.

@gmanley
Created July 12, 2013 01:00
Show Gist options
  • Save gmanley/5980601 to your computer and use it in GitHub Desktop.
Save gmanley/5980601 to your computer and use it in GitHub Desktop.
def initialize(model = nil, mounted_as = nil)
if model
self.class.class_eval do
model.image_types.each do |type|
version type.name.to_sym do
process :resize_to_fill => [type.crop_x, type.crop_y]
# process :store_geometry
end
end
end
end
end
super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment