I hereby claim:
- I am mindtonic on github.
- I am mindtonic (https://keybase.io/mindtonic) on keybase.
- I have a public key whose fingerprint is C68E EAB8 AEEE A561 993D 0D72 2CCE 64B4 E004 8481
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
From 8142eb61d276cda63f11daf8da015455cd0aa93e Mon Sep 17 00:00:00 2001 | |
From: Jay Sanders <mindtonic@gmail.com> | |
Date: Mon, 23 Jan 2012 10:32:41 -0500 | |
Subject: [PATCH] Working out Facebook Galleries installation | |
--- | |
Gemfile.lock | 8 +- | |
app/controllers/facebook_controller.rb | 2 +- | |
app/controllers/workspace/galleries_controller.rb | 53 +- | |
app/models/facebook/page.rb | 29 + |
From 8142eb61d276cda63f11daf8da015455cd0aa93e Mon Sep 17 00:00:00 2001 | |
From: Jay Sanders <mindtonic@gmail.com> | |
Date: Mon, 23 Jan 2012 10:32:41 -0500 | |
Subject: [PATCH] Working out Facebook Galleries installation | |
--- | |
Gemfile.lock | 8 +- | |
app/controllers/facebook_controller.rb | 2 +- | |
app/controllers/workspace/galleries_controller.rb | 53 +- | |
app/models/facebook/page.rb | 29 + |
require 'active_record' | |
require 'lib/seeder' | |
namespace :seed do | |
# | |
# All | |
# | |
task(:all => :environment) do |
# New Model with Cloudfiles Storage | |
class Photo < ActiveRecord::Base | |
has_attachment :content_type => :image, | |
:max_size => 1.megabyte, | |
:storage => :cloud_files, | |
:resize_to => "fill 128x128" | |
end | |
# Old Model with overwritten attachment methods | |
class OldPhoto < Photo |