diff options
| author | Teddy Wing | 2017-09-19 18:16:16 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-09-19 18:16:16 +0200 | 
| commit | 5b437302c3cbc90f920de11169f249658c23a5ee (patch) | |
| tree | 30207b79734f2247dc6dce5992ded324bc2217ec /lib/model_attribute.rb | |
| parent | a60bf813aa118648998093242d6db0e1d8613e76 (diff) | |
| download | chouette-core-5b437302c3cbc90f920de11169f249658c23a5ee.tar.bz2 | |
ModelAttribute.methods_by_class: Take symbol parameter instead of string
Didn't like how `#initialize` takes a different type for `klass` than
`.methods_by_class`. Make these types and values uniform. If we need to
change it, we should make a separate mechanism to do so. I think.
Refs #4401
Diffstat (limited to 'lib/model_attribute.rb')
| -rw-r--r-- | lib/model_attribute.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/model_attribute.rb b/lib/model_attribute.rb index 8f1ecabed..84706ba4d 100644 --- a/lib/model_attribute.rb +++ b/lib/model_attribute.rb @@ -11,7 +11,7 @@ class ModelAttribute    def self.methods_by_class(klass)      all.select do |model_attr| -      model_attr.klass == klass.downcase.to_sym +      model_attr.klass == klass      end    end | 
