Class: ReceiptTemplate

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/receipt_template.rb

Class Method Summary collapse

Class Method Details

.read(keyword) ⇒ Object



2
3
4
# File 'app/models/receipt_template.rb', line 2

def self.read(keyword)
  find_by_keyword(keyword).try(:template) || "!!! Template not found !!!"
end