app/models/hubstats/label.rb in hubstats-0.0.23 vs app/models/hubstats/label.rb in hubstats-0.1.0
- old
+ new
@@ -7,10 +7,10 @@
.with_ids(pull_ids)
.having("pull_request_count > 0")
.group("hubstats_labels.id")
}
- scope :with_ids, lambda { |pull_ids| (where("hubstats_labels_pull_requests.pull_request_id" => pull_ids)) unless pull_ids.blank? }
+ scope :with_ids, lambda { |pull_ids| (where("hubstats_labels_pull_requests.pull_request_id" => pull_ids)) }
scope :with_state, lambda {|state| (where(state: state) unless state == 'all') if state}
attr_accessible :url, :name, :color