Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

@improve Not replicate register of models

  • Loading branch information...
commit 2330a0e3bd8b0d9285853d36996e9db8faa8d312 1 parent b9b9d1b
@jeroig authored angelf committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/escargot.rb
View
2  lib/escargot.rb
@@ -10,7 +10,7 @@
module Escargot
def self.register_model(model)
@indexed_models ||= []
- @indexed_models << model
+ @indexed_models << model if !@indexed_models.include?(model)
end
def self.indexed_models
Please sign in to comment.
Something went wrong with that request. Please try again.