Class: Mdm::ApiKey

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/api_key.rb

Instance Method Summary collapse

Instance Method Details

#supports_apiObject (protected)



11
12
13
14
15
16
17
# File 'app/models/mdm/api_key.rb', line 11

def supports_api
  license = License.get

  if license and not license.supports_api?
    errors[:license] = " - this product does not support API access"
  end
end