Permalink
Browse files

Fixed a bug

  • Loading branch information...
1 parent b139068 commit f12ce6d20c39d4f1135b9cb5414179c1b66fe7ed A.K.M. Ashrafuzzaman committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/story.rb
View
2 app/models/story.rb
@@ -8,7 +8,7 @@ class Story < ActiveRecord::Base
has_many :tasks
scope :current, where(:scope => Scope::CURRENT)
scope :backlog, where(:scope => Scope::BACKLOG)
- scope :yet_to_be_accepted, where('stories.status != "accepted"')
+ scope :yet_to_be_accepted, where(['stories.status != ?', 'accepted'])
scope :prioritized, order('priority')
scope :assigned_to, lambda { |user| where(:assigned_to_id => user.id) }
scope :assigned_to_task_for, lambda { |user| includes('tasks').where("tasks.assigned_to_id" => user.id) }

0 comments on commit f12ce6d

Please sign in to comment.