lib/rails_erd/domain/entity.rb in rails-erd-1.5.0 vs lib/rails_erd/domain/entity.rb in rails-erd-1.5.1
- old
+ new
@@ -91,10 +91,10 @@
def children
@children ||= domain.specializations_by_entity_name(name).map(&:specialized)
end
def namespace
- name.scan(/(.*)::.*/).dig(0,0)
+ $1 if name.match /(.*)::.*/
end
def to_s # @private :nodoc:
name
end