app/models/status.rb in radiant-0.5.2 vs app/models/status.rb in radiant-0.6.0
- old
+ new
@@ -9,14 +9,14 @@
def symbol
@name.to_s.downcase.intern
end
def self.[](value)
- @@statuses.select { |status| status.symbol == value.to_s.downcase.intern }.first
+ @@statuses.find { |status| status.symbol == value.to_s.downcase.intern }
end
def self.find(id)
- @@statuses.select { |status| status.id.to_s == id.to_s }.first
+ @@statuses.find { |status| status.id.to_s == id.to_s }
end
def self.find_all
@@statuses.dup
end