Module: RedmineExtensions::RailsPatches::ActiveRecord
- Defined in:
- lib/redmine_extensions/rails_patches/active_record.rb
Instance Method Summary collapse
Instance Method Details
#hiearchy ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/redmine_extensions/rails_patches/active_record.rb', line 5 def hiearchy klass = self.class hiearchy = [] while true hiearchy << klass.name break if klass == klass.base_class klass = klass.superclass end hiearchy end |