| Class | Authorization::DevelopmentSupport::ChangeAnalyzer::Step |
| In: |
lib/declarative_authorization/development_support/change_analyzer.rb
|
| Parent: | Array |
# File lib/declarative_authorization/development_support/change_analyzer.rb, line 147
147: def eql? (other)
148: # TODO use approach.users.index(self[idx]) ==
149: # other.approach.users.index(other[idx])
150: # instead of user.login
151: other.is_a?(Array) && other.length == length &&
152: (0...length).all? {|idx| self[idx].class == other[idx].class &&
153: ((self[idx].respond_to?(:to_sym) && self[idx].to_sym == other[idx].to_sym) ||
154: (self[idx].respond_to?(:login) && self[idx].login == other[idx].login) ||
155: self[idx] == other[idx] ) }
156: end