SpeciesFileGroup/taxonworks

View on GitHub
app/models/concerns/shared/observation_index.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Shared code for referencing observation_object
module Shared::ObservationIndex 
  extend ActiveSupport::Concern

  included do

    def observation_index
      observation_object_type + observation_object_id.to_s
    end
  end
end