polygallery 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f51c1a16885afdcc76b0f04687ef3e6d20fd231
4
- data.tar.gz: 75885d11e06c40cb944c273c9846dc28f754cb21
3
+ metadata.gz: 52bfbb46e0f9c7caaa2f0eb947efbbb0b21aec4c
4
+ data.tar.gz: c5d029c37ad88510e12eda7603bfd53dbfc2d818
5
5
  SHA512:
6
- metadata.gz: 67e31893586b4573bcb41e0dca1e08b6833f7b123716a79e793d26249bb5d91bbe00db7fe116aaa7d01092d069576398543545c910c56fc9125a7ae84dbb7700
7
- data.tar.gz: 20d8476089e213c90a1aab039af62a0681d19b17d11595a16674e461fcd07a4dfe25aa9c8e9fea5526f56eeb3dfa472ef145b51bca0569a7746da5396f3c9fdb
6
+ metadata.gz: 4fcffaa28aa3b66197e530d3621ccca96923862f96250f5ab61bba3750e5fecb89677a1e269ad67128e915d06d48b8fc9f7f935f44d3102f4b4c4c30fc501dbc
7
+ data.tar.gz: 7c41b38f693a75bc38aeb9ce6f605b77e66d9411be2ce51ef867ab71fcc25853afcd5ed55c3b9bbc885d3c48e48dc9bfc2d7827392f1b14d4153cc0345215fb3
@@ -1,21 +1,27 @@
1
1
  module Polygallery
2
2
  class Gallery < ActiveRecord::Base
3
- attr_accessor :settings
4
3
  DEFAULTS = {
5
4
  :association => {
6
5
  :class_name => 'Polygallery::Gallery',
7
6
  :as => :galleryable,
8
7
  :dependent => :destroy
9
8
  },
10
- :nested_attributes => {:reject_if => :all_blank},
11
- :validates => {}
9
+ :nested_attributes => {
10
+ :gallery => {:reject_if => :all_blank},
11
+ :photo => {:reject_if => :all_blank}
12
+ },
13
+ :validates => {},
14
+ :paperclip => {
15
+ :styles => {:medium => '300x300#', :thumb => '100x100#'},
16
+ :default_url => '/images/:style/missing.png'
17
+ }
12
18
  }
13
19
 
14
20
  belongs_to :galleryable, :polymorphic => true
15
- has_many :photos, :class_name => 'Polygallery::Photo'
16
- accepts_nested_attributes_for :photos
17
- after_initialize do
18
- self.photos.build unless self.photos.any?
21
+ has_polyphotos
22
+
23
+ def settings
24
+ self.galleryable.send("#{title}_settings".to_sym)
19
25
  end
20
26
 
21
27
  end
@@ -1,11 +1,28 @@
1
1
  module Polygallery
2
2
  class Photo < ActiveRecord::Base
3
3
 
4
- has_attached_file :photo, :styles => { :full => "1200x900>", :big_slide => "1200x600#", :medium => "480x270>", :slide => "550x260#", :grid => "260x172#", :thumb => "100x100#"}, :default_url => '/images/:style/missing.png'
4
+ belongs_to :gallery, :class_name => 'Polygallery::Gallery'
5
+ has_attached_file :photo,
6
+ :styles => ->(p) { p.instance.paperclip_settings[:styles] },
7
+ :default_url => ->(p) { p.instance.paperclip_settings[:default_url] }
5
8
  validates_attachment_content_type :photo, :content_type => /\Aimage\/.*\Z/
6
- # validates_attachment_presence :photo
9
+ # validates_attachment_presence :photo # TODO: make this a setting
7
10
 
8
- belongs_to :gallery, :class_name => 'Polygallery::Gallery'
11
+ attr_accessor :photo_to_upload
12
+ before_save :process_photo_to_upload
13
+
14
+ def paperclip_settings
15
+ if gallery.present?
16
+ gallery.settings[:paperclip]
17
+ else
18
+ puts 'WARNING: Gallery not found! Using default paperclip settings...'
19
+ Gallery::DEFAULTS[:paperclip]
20
+ end
21
+ end
22
+
23
+ def process_photo_to_upload
24
+ self.photo = File.open(photo_to_upload) if photo_to_upload.present?
25
+ end
9
26
 
10
27
  end
11
28
  end
@@ -11,14 +11,28 @@ module Polygallery
11
11
  defaults = Gallery::DEFAULTS
12
12
  settings = defaults.deep_merge(options)
13
13
  has_one title.to_sym, -> { where(:title => title.to_s) }, settings[:association]
14
- accepts_nested_attributes_for title.to_sym, settings[:nested_attributes]
14
+ accepts_nested_attributes_for title.to_sym, settings[:nested_attributes][:gallery]
15
+ has_many "#{title}_photos".to_sym,
16
+ :through => title.to_sym,
17
+ :source => :photos,
18
+ :class_name => 'Polygallery::Photo'
19
+ attr_accessor "#{title}_settings".to_sym
15
20
  after_initialize do
21
+ send("#{title}_settings=".to_sym, settings) if send("#{title}_settings".to_sym).nil?
16
22
  send("build_#{title.to_s}".to_sym) if send(title.to_sym).nil?
17
- send(title.to_sym).settings = settings
18
23
  end
19
24
  include HasPolygallery::LocalInstanceMethods
20
25
  end
21
26
 
27
+ def has_polyphotos(title='photos')
28
+ has_many title.to_sym, :class_name => 'Polygallery::Photo'
29
+ accepts_nested_attributes_for title.to_sym, Gallery::DEFAULTS[:nested_attributes][:photo] # TODO: get the actual settings object somehow
30
+ attr_accessor :photos_to_upload
31
+ after_initialize do
32
+ send(title.to_sym).build unless send(title.to_sym).any?
33
+ end
34
+ end
35
+
22
36
  def polygalleries
23
37
  self.reflect_on_all_associations(:has_one).select{|a| a.foreign_key == 'galleryable_id'}.map(&:name)
24
38
  end
@@ -1,3 +1,3 @@
1
1
  module Polygallery
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -6669,3 +6669,460 @@ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-08-06 10:33:06
6669
6669
  Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6670
6670
  Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6671
6671
  Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 [["gallery_id", 5]]
6672
+
6673
+
6674
+ Started GET "/" for 127.0.0.1 at 2014-09-04 12:07:13 -0600
6675
+ ActiveRecord::SchemaMigration Load (39.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
6676
+ Processing by HomeController#index as HTML
6677
+ Rendered /Applications/XAMPP/xamppfiles/htdocs/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (31.1ms)
6678
+ Rendered /Applications/XAMPP/xamppfiles/htdocs/polygallery/app/views/polygallery/photos/_simple_fields_for.html.haml (10.0ms)
6679
+ Rendered /Applications/XAMPP/xamppfiles/htdocs/polygallery/app/views/polygallery/galleries/_simple_fields_for.html.haml (128.8ms)
6680
+ Rendered /Applications/XAMPP/xamppfiles/htdocs/polygallery/app/views/polygallery/galleries/_fields_for.html.haml (52.2ms)
6681
+ Rendered home/index.html.haml within layouts/application (1245.3ms)
6682
+ Completed 200 OK in 2383ms (Views: 2106.9ms | ActiveRecord: 26.0ms)
6683
+
6684
+
6685
+ Started GET "/assets/bootstrap-theme.min.css?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6686
+
6687
+
6688
+ Started GET "/assets/bootstrap.min.css?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6689
+
6690
+
6691
+ Started GET "/assets/events.css?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6692
+
6693
+
6694
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6695
+
6696
+
6697
+ Started GET "/assets/events.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6698
+
6699
+
6700
+ Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6701
+
6702
+
6703
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6704
+
6705
+
6706
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6707
+
6708
+
6709
+ Started GET "/assets/bootstrap.min.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:17 -0600
6710
+
6711
+
6712
+ Started GET "/assets/simple_form_fileinput/bootstrap.file-input.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:18 -0600
6713
+
6714
+
6715
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:18 -0600
6716
+
6717
+
6718
+ Started GET "/assets/simple_form_fileinput/init.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:18 -0600
6719
+
6720
+
6721
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-04 12:07:18 -0600
6722
+
6723
+
6724
+ Started GET "/assets/polygallery/thumbnail-missing.jpg" for 127.0.0.1 at 2014-09-04 12:07:18 -0600
6725
+ Event Load (42.4ms) SELECT "events".* FROM "events"
6726
+ Polygallery::Gallery Load (21.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 1], ["galleryable_type", "Event"]]
6727
+ Polygallery::Photo Exists (37.9ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 1]]
6728
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 2], ["galleryable_type", "Event"]]
6729
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 2]]
6730
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6731
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6732
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
6733
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6734
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6735
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6736
+  (0.4ms) SELECT COUNT(*) FROM "events"
6737
+ Event Load (42.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6738
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6739
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6740
+ Event Load (0.8ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6741
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6742
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6743
+ Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6744
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6745
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6746
+ Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6747
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6748
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6749
+ Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6750
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6751
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6752
+ Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6753
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6754
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6755
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6756
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6757
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6758
+ Event Load (0.2ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6759
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6760
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6761
+ Event Load (0.9ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6762
+ Polygallery::Gallery Load (0.8ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6763
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6764
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6765
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6766
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6767
+ Event Load (0.6ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6768
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6769
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6770
+ Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
6771
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6772
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6773
+ Polygallery::Photo Load (1.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE (photo_file_name IS NOT NULL) ORDER BY "polygallery_photos"."id" ASC LIMIT 1000
6774
+ Polygallery::Gallery Load (12.8ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6775
+ Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6776
+ Event Load (0.4ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6777
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6778
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6779
+  (0.2ms) BEGIN
6780
+  (0.3ms) COMMIT
6781
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6782
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6783
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6784
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6785
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6786
+  (0.3ms) BEGIN
6787
+  (0.2ms) COMMIT
6788
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
6789
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6790
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
6791
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
6792
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6793
+  (0.2ms) BEGIN
6794
+  (0.1ms) COMMIT
6795
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
6796
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6797
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
6798
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
6799
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6800
+  (0.2ms) BEGIN
6801
+  (0.1ms) COMMIT
6802
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6803
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6804
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6805
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6806
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6807
+  (0.2ms) BEGIN
6808
+  (0.1ms) COMMIT
6809
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6810
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6811
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6812
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6813
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6814
+  (0.2ms) BEGIN
6815
+  (0.2ms) COMMIT
6816
+ Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE (photo_file_name IS NOT NULL) ORDER BY "polygallery_photos"."id" ASC LIMIT 1000
6817
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6818
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6819
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6820
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6821
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6822
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11583-1hpbuai.JPG'
6823
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6824
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6825
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6826
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6827
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6828
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11583-11wo61a.jpg'
6829
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
6830
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6831
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
6832
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
6833
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6834
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11583-18vp1f7.jpg'
6835
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
6836
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6837
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
6838
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
6839
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
6840
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11583-1d6i7os.JPG'
6841
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6842
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6843
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6844
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6845
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6846
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11583-130uvp6.JPG'
6847
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6848
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6849
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6850
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6851
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6852
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11583-17igtr8.jpg'
6853
+ Polygallery::Photo Load (17.0ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6854
+ Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6855
+ Polygallery::Photo Load (0.7ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6856
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6857
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6858
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6859
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6860
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6861
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-3oz44f.jpg'
6862
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6863
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6864
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6865
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6866
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6867
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6868
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-17izgof.jpg'
6869
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]' 2>/dev/null
6870
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]'
6871
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et20140904-11630-18cwqun'
6872
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et20140904-11630-18cwqun'
6873
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]' 2>/dev/null
6874
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]'
6875
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et20140904-11630-r03s4r'
6876
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-ubv5et20140904-11630-r03s4r'
6877
+  (0.2ms) BEGIN
6878
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 10 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:19:43.622209"], ["updated_at", "2014-09-04 18:19:45.427955"]]
6879
+  (17.4ms) COMMIT
6880
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6881
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6882
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6883
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6884
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6885
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6886
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-lev6h5.jpg'
6887
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]' 2>/dev/null
6888
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]'
6889
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd20140904-11630-1yx8p87'
6890
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd20140904-11630-1yx8p87'
6891
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]' 2>/dev/null
6892
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]'
6893
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd20140904-11630-1q0t3v6'
6894
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-173angd20140904-11630-1q0t3v6'
6895
+  (0.4ms) BEGIN
6896
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 10 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:19:59.168212"], ["updated_at", "2014-09-04 18:20:00.185470"]]
6897
+  (33.1ms) COMMIT
6898
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6899
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6900
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6901
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6902
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6903
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6904
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-gn20pc.jpg'
6905
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]' 2>/dev/null
6906
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]'
6907
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g20140904-11630-18pqxn5'
6908
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g20140904-11630-18pqxn5'
6909
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]' 2>/dev/null
6910
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]'
6911
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g20140904-11630-582i8a'
6912
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-shba3g20140904-11630-582i8a'
6913
+  (0.2ms) BEGIN
6914
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 10 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:20:27.377630"], ["updated_at", "2014-09-04 18:20:28.484511"]]
6915
+  (16.3ms) COMMIT
6916
+ Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6917
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6918
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6919
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6920
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6921
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6922
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-8wmu2m.jpg'
6923
+  (0.3ms) BEGIN
6924
+  (0.3ms) ROLLBACK
6925
+ Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6926
+ Polygallery::Photo Load (0.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6927
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6928
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6929
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6930
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6931
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6932
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6933
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6934
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6935
+ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6936
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6937
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6938
+ Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6939
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6940
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6941
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6942
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6943
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6944
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1l26f3q.jpg'
6945
+  (0.3ms) BEGIN
6946
+  (0.2ms) ROLLBACK
6947
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6948
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6949
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6950
+ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6951
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6952
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6953
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1wys9yu.jpg'
6954
+  (0.2ms) BEGIN
6955
+  (0.1ms) ROLLBACK
6956
+ Polygallery::Photo Load (0.3ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6957
+ Polygallery::Gallery Load (0.1ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6958
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6959
+ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6960
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6961
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6962
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-15tdg69.jpg'
6963
+  (0.2ms) BEGIN
6964
+  (0.1ms) ROLLBACK
6965
+ Polygallery::Photo Load (0.2ms) SELECT "polygallery_photos".* FROM "polygallery_photos" ORDER BY "polygallery_photos"."id" DESC LIMIT 1
6966
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
6967
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6968
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
6969
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
6970
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
6971
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-aku2wt.jpg'
6972
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]' 2>/dev/null
6973
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]'
6974
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q20140904-11630-12udukv'
6975
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q20140904-11630-12udukv'
6976
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]' 2>/dev/null
6977
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]'
6978
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q20140904-11630-1a9heq3'
6979
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11630-1ee5t0q20140904-11630-1a9heq3'
6980
+  (0.2ms) BEGIN
6981
+ SQL (0.4ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 10 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:24:51.686087"], ["updated_at", "2014-09-04 18:24:52.999655"]]
6982
+  (36.2ms) COMMIT
6983
+ Polygallery::Photo Load (1.5ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE (photo_file_name IS NOT NULL) ORDER BY "polygallery_photos"."id" ASC LIMIT 1000
6984
+ Polygallery::Gallery Load (0.7ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6985
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6986
+ Event Load (0.6ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6987
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6988
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6989
+  (0.2ms) BEGIN
6990
+  (0.2ms) COMMIT
6991
+ Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
6992
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6993
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
6994
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
6995
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
6996
+  (0.2ms) BEGIN
6997
+  (0.1ms) COMMIT
6998
+ Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
6999
+ Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7000
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
7001
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
7002
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7003
+  (0.3ms) BEGIN
7004
+  (0.2ms) COMMIT
7005
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
7006
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7007
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
7008
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
7009
+ Polygallery::Photo Exists (0.1ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7010
+  (0.2ms) BEGIN
7011
+  (0.2ms) COMMIT
7012
+ Polygallery::Gallery Load (0.6ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
7013
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7014
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
7015
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
7016
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7017
+  (0.2ms) BEGIN
7018
+  (0.3ms) COMMIT
7019
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
7020
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7021
+ Event Load (0.4ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
7022
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
7023
+ Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7024
+  (0.2ms) BEGIN
7025
+  (0.2ms) COMMIT
7026
+ Polygallery::Photo Load (0.6ms) SELECT "polygallery_photos".* FROM "polygallery_photos" WHERE (photo_file_name IS NOT NULL) ORDER BY "polygallery_photos"."id" ASC LIMIT 1000
7027
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
7028
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
7029
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
7030
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
7031
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
7032
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-y1d6pr.JPG'
7033
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]' 2>/dev/null
7034
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]'
7035
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]' -auto-orient -resize "x300" -crop "300x300+74+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph20140904-11790-1dimepz'
7036
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph20140904-11790-1dimepz'
7037
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]' 2>/dev/null
7038
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]'
7039
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph.JPG[0]' -auto-orient -resize "x100" -crop "100x100+24+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph20140904-11790-1jchdwr'
7040
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-rafkph20140904-11790-1jchdwr'
7041
+  (0.3ms) BEGIN
7042
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 3 [["photo_file_name", "DSC_5099.JPG"], ["photo_updated_at", "2014-09-04 18:25:55.304019"], ["updated_at", "2014-09-04 18:26:05.369444"]]
7043
+  (60.9ms) COMMIT
7044
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 3]]
7045
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
7046
+ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 3]]
7047
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 3], ["galleryable_type", "Event"]]
7048
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 3]]
7049
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-2idqf9.jpg'
7050
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]' 2>/dev/null
7051
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]'
7052
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg20140904-11790-1debubl'
7053
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg20140904-11790-1debubl'
7054
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]' 2>/dev/null
7055
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]'
7056
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg20140904-11790-k5l01i'
7057
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-pzwcmg20140904-11790-k5l01i'
7058
+  (0.2ms) BEGIN
7059
+ SQL (0.4ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 4 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:26:05.719305"], ["updated_at", "2014-09-04 18:26:07.136168"]]
7060
+  (66.1ms) COMMIT
7061
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
7062
+ Polygallery::Photo Exists (0.4ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7063
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
7064
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
7065
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7066
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-1lkp4s6.jpg'
7067
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]' 2>/dev/null
7068
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]'
7069
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc20140904-11790-17htcp9'
7070
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc20140904-11790-17htcp9'
7071
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]' 2>/dev/null
7072
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]'
7073
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc20140904-11790-1ys7eo2'
7074
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-llnefc20140904-11790-1ys7eo2'
7075
+  (0.3ms) BEGIN
7076
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 6 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:26:07.415396"], ["updated_at", "2014-09-04 18:26:08.487205"]]
7077
+  (202.6ms) COMMIT
7078
+ Polygallery::Gallery Load (0.4ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 4]]
7079
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7080
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 4]]
7081
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 4], ["galleryable_type", "Event"]]
7082
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 4]]
7083
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1fg0ale.JPG'
7084
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]' 2>/dev/null
7085
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]'
7086
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]' -auto-orient -resize "x300" -crop "300x300+74+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v20140904-11790-1lp1ec3'
7087
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v20140904-11790-1lp1ec3'
7088
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]' 2>/dev/null
7089
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]'
7090
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v.JPG[0]' -auto-orient -resize "x100" -crop "100x100+24+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v20140904-11790-t8eakh'
7091
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-ln1x9v20140904-11790-t8eakh'
7092
+  (0.3ms) BEGIN
7093
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 7 [["photo_file_name", "DSC_5099.JPG"], ["photo_updated_at", "2014-09-04 18:26:10.621349"], ["updated_at", "2014-09-04 18:26:16.860493"]]
7094
+  (737.1ms) COMMIT
7095
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
7096
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7097
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
7098
+ Polygallery::Gallery Load (0.2ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
7099
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7100
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1a4lv46.JPG'
7101
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]' 2>/dev/null
7102
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]'
7103
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]' -auto-orient -resize "x300" -crop "300x300+74+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p20140904-11790-1khzstx'
7104
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p20140904-11790-1khzstx'
7105
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]' 2>/dev/null
7106
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]'
7107
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p.JPG[0]' -auto-orient -resize "x100" -crop "100x100+24+0" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p20140904-11790-1j9hvas'
7108
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/a4bdba1e10326ff275c53c6b80ae26c620140904-11790-1snih3p20140904-11790-1j9hvas'
7109
+  (0.4ms) BEGIN
7110
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 9 [["photo_file_name", "DSC_5099.JPG"], ["photo_updated_at", "2014-09-04 18:26:18.375880"], ["updated_at", "2014-09-04 18:26:25.094099"]]
7111
+  (15.5ms) COMMIT
7112
+ Polygallery::Gallery Load (0.5ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."id" = $1 LIMIT 1 [["id", 5]]
7113
+ Polygallery::Photo Exists (0.3ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7114
+ Event Load (0.3ms) SELECT "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1 [["id", 5]]
7115
+ Polygallery::Gallery Load (0.3ms) SELECT "polygallery_galleries".* FROM "polygallery_galleries" WHERE "polygallery_galleries"."galleryable_id" = $1 AND "polygallery_galleries"."galleryable_type" = $2 AND "polygallery_galleries"."title" = 'gallery' LIMIT 1 [["galleryable_id", 5], ["galleryable_type", "Event"]]
7116
+ Polygallery::Photo Exists (0.2ms) SELECT 1 AS one FROM "polygallery_photos" WHERE "polygallery_photos"."gallery_id" = $1 LIMIT 1 [["gallery_id", 5]]
7117
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-36ossq.jpg'
7118
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]' 2>/dev/null
7119
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]'
7120
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]' -auto-orient -resize "300x" -crop "300x300+0+25" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej20140904-11790-1swjy6g'
7121
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej20140904-11790-1swjy6g'
7122
+ Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]' 2>/dev/null
7123
+ Command :: identify -format %m '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]'
7124
+ Command :: convert '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej.jpg[0]' -auto-orient -resize "100x" -crop "100x100+0+8" +repage '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej20140904-11790-e0neq6'
7125
+ Command :: file -b --mime '/var/folders/gz/nx2ykb7n23dc3s2vkm3p07r80000gn/T/72c3882bf26f1faa86708e033384dcc820140904-11790-h8rbej20140904-11790-e0neq6'
7126
+  (0.3ms) BEGIN
7127
+ SQL (0.5ms) UPDATE "polygallery_photos" SET "photo_file_name" = $1, "photo_updated_at" = $2, "updated_at" = $3 WHERE "polygallery_photos"."id" = 10 [["photo_file_name", "SALON_RUNWAY_(1).jpg"], ["photo_updated_at", "2014-09-04 18:26:25.220634"], ["updated_at", "2014-09-04 18:26:26.379886"]]
7128
+  (114.8ms) COMMIT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -343,7 +343,6 @@ files:
343
343
  - test/dummy/tmp/cache/assets/development/sprockets/f644fd75cbead0e58c847aa16546e2a8
344
344
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
345
345
  - test/dummy/tmp/cache/assets/development/sprockets/fe0a04f09eb0c97bcc18973678e986a3
346
- - test/dummy/tmp/pids/server.pid
347
346
  - test/fixtures/polygallery/galleries.yml
348
347
  - test/fixtures/polygallery/photos.yml
349
348
  - test/helpers/polygallery/galleries_helper_test.rb
@@ -536,7 +535,6 @@ test_files:
536
535
  - test/dummy/tmp/cache/assets/development/sprockets/f644fd75cbead0e58c847aa16546e2a8
537
536
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
538
537
  - test/dummy/tmp/cache/assets/development/sprockets/fe0a04f09eb0c97bcc18973678e986a3
539
- - test/dummy/tmp/pids/server.pid
540
538
  - test/fixtures/polygallery/galleries.yml
541
539
  - test/fixtures/polygallery/photos.yml
542
540
  - test/helpers/polygallery/galleries_helper_test.rb
@@ -1 +0,0 @@
1
- 42886