Sha256: ece55a4340fdaf26efe1d864fcfa779f42412411177a7eb6c58fee67f734c86c

Contents?: true

Size: 208 Bytes

Versions: 8

Compression:

Stored size: 208 Bytes

Contents

module FeedbackGem
  class Feedback < ApplicationRecord
  	validates :name,:email,:subject,:description,presence: true
  	def self.search(searchname)
			where('name LIKE ?',"%#{searchname}%")
		end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
feedback_gem-0.3.6 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.5 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.4 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.3 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.2 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.1 app/models/feedback_gem/feedback.rb
feedback_gem-0.3.0 app/models/feedback_gem/feedback.rb
feedback_gem-0.2.9 app/models/feedback_gem/feedback.rb