```ruby
class PameEvaluation < ActiveRecord::Base
  belongs_to :protected_area
  belongs_to :pame_source
  has_and_belongs_to_many :countries

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

  def visible
    if (protected_area.nil? && restricted) || protected_area.present?
      true
    else
      false
    end
  end
end
```

Remove visible method from pame evaluation model
user
```ruby
class PameEvaluation < ActiveRecord::Base
  belongs_to :protected_area
  belongs_to :pame_source
  has_and_belongs_to_many :countries

  validates :methodology, :year, :metadata_id, :url, presence: true
end
```
assistant