Method: Mutx::Database::MongoConnector.last_commit
- Defined in:
- lib/mutx/database/mongo_connector.rb
.last_commit ⇒ Object
Returns last saved commit info $return [Hash] if exist
211 212 213 214 215 216 217 |
# File 'lib/mutx/database/mongo_connector.rb', line 211 def self.last_commit Mutx::Support::Log.debug "Getting last commit" if Mutx::Support::Log data = $commits.find({}).to_a || [] unless data.empty? data.last["log"] end end |