Class: Congo::ProxyScoper
- Inherits:
-
Object
- Object
- Congo::ProxyScoper
- Includes:
- MongoMapper::Document
- Defined in:
- lib/congo/proxy_scoper.rb
Instance Method Summary collapse
-
#ext ⇒ Object
validations.
-
#ext_type ⇒ Object
keys.
Instance Method Details
#ext ⇒ Object
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_type ⇒ Object
keys
9 |
# File 'lib/congo/proxy_scoper.rb', line 9 key :ext_type, String |