The current implementation returns an Array, which is not queryable (in comparison with ActiveRecord::Relation)
Possible implementation:
module Model
def self.where(*args)
//Check if args is a hash and filter values
filtered_values = all
StaticModelArray.new(filtered_values)
end
end
class StaticModelArray < Array
def initialize(values)
@values = values
end
def find(id)
@values.find{|v| v.id == id.to_d}
end
end