1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Preliminary import/export feature

This commit is contained in:
2019-01-30 20:16:56 +00:00
parent 46b8888245
commit 2b92bdaf66
8 changed files with 228 additions and 3 deletions

View File

@@ -10,6 +10,8 @@ class Tournament < ActiveRecord::Base
validates :date, :name, :tournament_type, :address, :director, :director_email , presence: true
attr_accessor :import_text
def self.search(search)
where("date LIKE ? or name LIKE ?", "%#{search}%", "%#{search}%")
end