app/models/export/ara.rb
def unique_code(model)
        candidates = candidate_codes(model)
        return nil unless candidates.one?

        candidate_value = candidates.first.value
        return nil if duplicated?(candidate_value)

        candidate_value
      end
# Returns the code value for the given Resource if uniq
Returns the code value for the given Resource if uniq
Returns the code value for the given Resource if uniq
def unique_code(model)
        candidates = candidate_codes(model)
        return nil unless candidates.one?
        candidate_value = candidates.first.value
        return nil if duplicated?(candidate_value)
        candidate_value
      end
def unique_code ( model ) candidates = candidate_codes ( model ) return nil unless candidates . one? candidate_value = candidates . first . value return nil if duplicated? ( candidate_value ) candidate_value end
Returns the code value for the given Resource if uniq
Returns the code value for the given Resource if uniq
model