Module: GeoWorks::EventsBehavior

Extended by:
ActiveSupport::Concern
Included in:
Hyrax::FileSetsController, Hyrax::ImageWorksController, Hyrax::RasterWorksController, Hyrax::VectorWorksController
Defined in:
app/controllers/concerns/geo_works/events_behavior.rb

Instance Method Summary collapse

Instance Method Details

#after_create_responseObject



10
11
12
13
# File 'app/controllers/concerns/geo_works/events_behavior.rb', line 10

def after_create_response
  super
  geo_works_events_generator.record_created(geo_work)
end

#after_update_responseObject



15
16
17
18
# File 'app/controllers/concerns/geo_works/events_behavior.rb', line 15

def after_update_response
  super
  geo_works_events_generator.record_updated(geo_work)
end

#destroyObject



5
6
7
8
# File 'app/controllers/concerns/geo_works/events_behavior.rb', line 5

def destroy
  geo_works_events_generator.record_deleted(geo_work)
  super
end

#geo_workObject



24
25
26
27
# File 'app/controllers/concerns/geo_works/events_behavior.rb', line 24

def geo_work
  doc = SolrDocument.new(curation_concern.to_solr)
  show_presenter.new(doc, current_ability, request)
end

#geo_works_events_generatorObject



20
21
22
# File 'app/controllers/concerns/geo_works/events_behavior.rb', line 20

def geo_works_events_generator
  @geo_works_events_generator ||= GeoWorks::EventsGenerator.new
end