diff options
| author | Robert Dober | 2017-09-25 13:50:36 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-25 13:50:36 +0200 |
| commit | 4e878caf4170f9be96f0c854761ed279b057e91c (patch) | |
| tree | 7781e66ec56abba277cf826375e8fcfc1b7b43a2 /lib | |
| parent | 76b3b813fb3cafc6880e50a57e823634a79d9a32 (diff) | |
| parent | bcae693304405cc9c273cf60952b1d123a820e31 (diff) | |
| download | chouette-core-4e878caf4170f9be96f0c854761ed279b057e91c.tar.bz2 | |
Merge pull request #77 from af83/4401-compliance-control-ModelAttribute--address-Robert,s-comments
4401 compliance control model attribute address robert,s comments
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/model_attribute.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/model_attribute.rb b/lib/model_attribute.rb index 60580e306..4d246853a 100644 --- a/lib/model_attribute.rb +++ b/lib/model_attribute.rb @@ -12,9 +12,9 @@ class ModelAttribute def self.classes all .map(&:klass) + .uniq .map(&:to_s) .map(&:camelize) - .uniq end def self.group_by_class @@ -93,7 +93,8 @@ class ModelAttribute end def ==(other) - klass == other.klass && + self.class === other && + klass == other.klass && name == other.name && data_type == other.data_type end |
