Module: Motr::Cargo::Package::Mongoid
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/motr/cargo/package/mongoid.rb
Instance Method Summary collapse
Instance Method Details
#generate_cargo_uid ⇒ Object
13 14 15 16 |
# File 'lib/motr/cargo/package/mongoid.rb', line 13 def generate_cargo_uid return true unless self.uid.nil? self.uid = self.class.max(:uid).to_i + 1 end |