mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 02:30:12 +01:00
forgot to add these
This commit is contained in:
parent
86afd42148
commit
fde64e0b3d
145 changed files with 9044 additions and 0 deletions
5
backup.rails2.3/lib/name_part_finder.rb
Normal file
5
backup.rails2.3/lib/name_part_finder.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
module NamePartFinder
|
||||
def find_by_namepart(namepart)
|
||||
find_by_name(namepart) || find(:first, :conditions => ["name LIKE ?", namepart + '%'])
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue