Class: Her::Model::Associations::HasManyAssociation

Inherits:
Association
  • Object
show all
Defined in:
lib/userbin/ext/her.rb

Overview

remove inheritance

Instance Method Summary collapse

Instance Method Details

#destroy(id) ⇒ Object



10
11
12
# File 'lib/userbin/ext/her.rb', line 10

def destroy(id)
  @klass.destroy_existing(id, :"#{@parent.singularized_resource_name}_id" => @parent.id)
end