Class: Tag

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/tag.rb

Class Method Summary collapse

Class Method Details

.find_or_initialize_with_name_like_and_kind(name, kind) ⇒ Object



3
4
5
# File 'lib/tag.rb', line 3

def find_or_initialize_with_name_like_and_kind(name, kind)
  with_name_like_and_kind(name, kind).first || new(:name => name, :kind => kind)
end