2
votes
1answer
39 views
Custom ActiveRecord finder invoking named scopes?
I have a custom finder defined below:
class ContainerGateIn << ActiveRecord::Base
...
def self.search(text)
result = if text
text.split(' ').inject(self) do |r …