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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user