It should still be fixed and return a relation, not an array, that's what
scope is for if it gets chained it would break

Sent from my iPhone

On 21 May 2014, at 12:24, hrishimittal <notifications@github.com> wrote:

In app/models/tribunal.rb:

> @@ -8,6 +8,11 @@ class Tribunal < ActiveRecord::Base
>    has_many :categories
>    has_many :subcategories, through: :categories
>
> +  scope :utiac, ->{ find_by_code("utiac") }

There are only 4 records in this table, and the max ever will be 20-odd, so
maybe it doesn't matter?

—
Reply to this email directly or view it on
GitHub<https://github.com/ministryofjustice/tribunals/pull/157/files#r12891214>
.