Sha256: fa5bb53431b5b7364d0297f3ed2e3e1c9c337e51e102a5db13bdcb8b257dd2d0
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
# module comment... module NewspaperWorks # setting this allows us to use GeoNames autocomplete for place_of_publication property # needs to be included in models after Hyrax::BasicMetadata module PlaceOfPublicationBehavior extend ActiveSupport::Concern included do self.controlled_properties = [:place_of_publication] accepts_nested_attributes_for :place_of_publication, reject_if: proc { |attributes| attributes[:id].blank? }, allow_destroy: true end end end
Version data entries
3 entries across 3 versions & 1 rubygems