Permalink
Browse files

Stuck at a Lazy Loading error

  • Loading branch information...
tibbon committed Dec 6, 2012
1 parent cd03bce commit cb3f6fd53500a7e18b5d690545e1843826d1f051
Showing with 5 additions and 2 deletions.
  1. +1 −0 Gemfile
  2. +1 −0 Gemfile.lock
  3. +1 −0 Procfile
  4. +2 −2 app/models/document.rb
View
@@ -7,6 +7,7 @@ gem 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git'
gem 'fog'
#Sunspot junk
+gem "sunspot"
gem "sunspot_rails"
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'
View
@@ -159,6 +159,7 @@ DEPENDENCIES
rails (= 3.2.9)
sass-rails (~> 3.2.3)
sqlite3
+ sunspot
sunspot_cell!
sunspot_rails
sunspot_solr
View
@@ -0,0 +1 @@
+web: bundle exec unicorn -p $PORT
View
@@ -13,11 +13,11 @@ def self.query(search)
searchable do
text :title
- #attachment :attached_file
+ attachment :attached_file
end
private
def attached_file
- URI.parse(file.expiring_url(60))
+ URI.parse(upload.expiring_url(60))
end
end

0 comments on commit cb3f6fd

Please sign in to comment.