lib/cm_admin.rb in cm-admin-0.3.0 vs lib/cm_admin.rb in cm-admin-0.4.0

- old
+ new

@@ -25,10 +25,12 @@ yield self end def config(entity, &block) if entity.is_a?(Class) - @@cm_admin_models << CmAdmin::Model.new(entity, &block) + unless CmAdmin::Model.find_by({name: entity.name}) + @@cm_admin_models << CmAdmin::Model.new(entity, &block) + end end end end end