Skip to content

Commit

Permalink
Add the picture association via generic_object_definition
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed Sep 20, 2017
1 parent 0bddb46 commit 72b90b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/generic_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class GenericObject < ApplicationRecord
virtual_has_one :custom_action_buttons

belongs_to :generic_object_definition
has_one :picture, :through => :generic_object_definition

validates :name, :presence => true

Expand Down

0 comments on commit 72b90b9

Please sign in to comment.