Class: Congo::ProxyScoper

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
lib/congo/proxy_scoper.rb

Instance Method Summary collapse

Instance Method Details

#extObject

validations



13
14
15
# File 'lib/congo/proxy_scoper.rb', line 13

validates_true_for :ext,
:logic => lambda { Congo::ProxyScoper.find_by_ext_id_and_ext_type(ext_id, ext_type).nil? },
:message => lambda { I18n.t('congo.errors.messages.taken') }

#ext_typeObject

keys



9
# File 'lib/congo/proxy_scoper.rb', line 9

key :ext_type, String