Skip to content

Commit

Permalink
Remove Loadable component from Pame importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Levia committed Aug 6, 2020
1 parent 697ffa7 commit 49beeab
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/models/pame_evaluation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
require 'wcmc_components'

class PameEvaluation < ApplicationRecord
include WcmcComponents::Loadable

belongs_to :protected_area, optional: true
belongs_to :pame_source
has_and_belongs_to_many :countries

validates :methodology, :year, :metadata_id, presence: true

# config for loadable mixin
ignore_column :designation

import_by protected_area: :wdpa_id
import_by countries: :iso_3


TABLE_ATTRIBUTES = [
{
title: 'Name',
Expand Down

0 comments on commit 49beeab

Please sign in to comment.