class Object
Constants
- ROOT
Public Instance Methods
find_or_create(object)
click to toggle source
Short alias for if exists then create @param [ActiveRecord::Base] object An object to check if exists and create
# File lib/core_ext/habtm.rb, line 4 def find_or_create(object) self.concat(object) unless include?(object) end