Module: SpeakingUrl::MongoResource::ClassMethods

Defined in:
lib/speaking_url/mongo_resource.rb

Instance Method Summary collapse

Instance Method Details

#find_by_url(url) ⇒ Object



31
32
33
# File 'lib/speaking_url/mongo_resource.rb', line 31

def find_by_url(url)
  where(:urls => url).first
end