Sha256: fed25f20aa32f50927874c14ed63a81f32745b3c516eed13ad0173b8a27c81c9

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

module GeoConcerns
  module VectorWorksControllerBehavior
    extend ActiveSupport::Concern

    included do
      self.show_presenter = GeoConcerns::VectorWorkShowPresenter
    end

    def create
      super

      return unless parent_id
      parent = ActiveFedora::Base.find(parent_id, cast: true)
      parent.ordered_members << curation_concern.reload
      parent.save
      curation_concern.update_index
    end

    def form_class
      GeoConcerns::VectorWorkForm
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geo_concerns-0.0.5 app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb
geo_concerns-0.0.4 app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb
geo_concerns-0.0.3 app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb
geo_concerns-0.0.2 app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb
geo_concerns-0.0.1 app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb