app/models/comatose/page.rb
# Check if a page has a selected keyword... NOT case sensitive.
# So the keyword McCray is the same as mccray
Check if a page has a selected keyword... NOT case sensitive.
So the keyword McCray is the same as mccray
Check if a page has a selected keyword ... NOT case sensitive . So the keyword McCray is the same as mccray
def has_keyword?(keyword)
       @key_list ||= (self.keywords || '').downcase.split(',').map {|k| k.strip }
       @key_list.include? keyword.to_s.downcase
     rescue
       false
     end
def has_keyword? ( keyword ) @key_list ||= ( self . keywords || '' ) . downcase . split ( ',' ) . map { | k | k . strip } @key_list . include? keyword . to_s . downcase rescue false end
Check if a page has a selected keyword... NOT case sensitive.
Check if a page has a selected keyword ... NOT case sensitive .
keyword
<not_specific>