Skip to content

Commit

Permalink
Merge pull request #16006 from AparnaKarve/go_diplay_custom_images
Browse files Browse the repository at this point in the history
Add the `picture` association to Generic Objects via `generic_object_definition`
  • Loading branch information
gmcculloug authored Sep 21, 2017
2 parents 2858163 + 72b90b9 commit 341862b
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 341862b

Please sign in to comment.