Skip to content
Browse files

Fix with_ids scope

  • Loading branch information...
1 parent 4f304e6 commit a8d7be95ebd7c3ced75a8b9f7ddd8900bb27f8fd @rwdaigle committed Nov 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/gist.rb
View
2 app/models/gist.rb
@@ -8,7 +8,7 @@ class Gist < ActiveRecord::Base
belongs_to :user
has_many :files, :class_name => 'GistFile', :dependent => :delete_all
- scope :with_ids, lambda { |ids| ids.any? ? where(["id in (?)", ids]) : "1 = 0"}
+ scope :with_ids, lambda { |ids| where(ids.any? ? ["id in (?)", ids] : "1 = 0") }
index_name ELASTICSEARCH_INDEX_NAME

0 comments on commit a8d7be9

Please sign in to comment.
Something went wrong with that request. Please try again.