| @@ -9,32 +9,34 @@ module Docs · 8 unmodified lines |
| 9 | /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations', | 9 | /\AActiveRecord.+Assoc/ => 'ActiveRecord/Associations', |
| 10 | /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes', | 10 | /\AActiveRecord.+Attribute/ => 'ActiveRecord/Attributes', |
| 11 | /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection', | 11 | /\AActiveRecord.+ConnectionAdapters/ => 'ActiveRecord/Connection', |
| 12 | /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation', | 12 | /\AActiveSupport.+(Subscriber|Notifications)/ => 'ActiveSupport/Instrumentation' } |
| 13 | /\A(False|Nil|True)Class/ => 'Boolean' } | | |
| 14 | | 13 | |
| 15 | TYPE_BY_NAME_STARTS_WITH = { | 14 | TYPE_BY_NAME_STARTS_WITH = { |
| 16 | 'ActionDispatch::Integration' => 'Testing', | 15 | 'ActionController::Parameters' => 'ActionController/Parameters', |
| 17 | 'ActionDispatch::Request' => 'ActionDispatch/Request', | 16 | 'ActionDispatch::Integration' => 'Testing', |
| 18 | 'ActionDispatch::Response' => 'ActionDispatch/Response', | 17 | 'ActionDispatch::Request' => 'ActionDispatch/Request', |
| 19 | 'ActionDispatch::Routing' => 'ActionDispatch/Routing', | 18 | 'ActionDispatch::Response' => 'ActionDispatch/Response', |
| 20 | 'ActionView::Helpers' => 'ActionView/Helpers', | 19 | 'ActionDispatch::Routing' => 'ActionDispatch/Routing', |
| 21 | 'ActiveModel::Errors' => 'ActiveModel/Validation', | 20 | 'ActionView::Helpers' => 'ActionView/Helpers', |
| 22 | 'ActiveModel::Valid' => 'ActiveModel/Validation', | 21 | 'ActiveModel::Errors' => 'ActiveModel/Validation', |
| 23 | 'ActiveRecord::Batches' => 'ActiveModel/Query', | 22 | 'ActiveModel::Valid' => 'ActiveModel/Validation', |
| 24 | 'ActiveRecord::Calculations' => 'ActiveModel/Query', | 23 | 'ActiveRecord::Batches' => 'ActiveRecord/Query', |
| 25 | 'ActiveRecord::Connection' => 'ActiveModel/Connection', | 24 | 'ActiveRecord::Calculations' => 'ActiveRecord/Query', |
| 26 | 'ActiveRecord::FinderMethods' => 'ActiveModel/Query', | 25 | 'ActiveRecord::Connection' => 'ActiveRecord/Connection', |
| 27 | 'ActiveRecord::Query' => 'ActiveModel/Query', | 26 | 'ActiveRecord::FinderMethods' => 'ActiveRecord/Query', |
| 28 | 'ActiveRecord::Relation' => 'ActiveModel/Relation', | 27 | 'ActiveRecord::Migra' => 'ActiveRecord/Migration', |
| 29 | 'ActiveRecord::Result' => 'ActiveModel/Connection', | 28 | 'ActiveRecord::Query' => 'ActiveRecord/Query', |
| 30 | 'ActiveRecord::Scoping' => 'ActiveModel/Query', | 29 | 'ActiveRecord::Relation' => 'ActiveRecord/Relation', |
| 31 | 'ActiveRecord::SpawnMethods' => 'ActiveModel/Query', | 30 | 'ActiveRecord::Result' => 'ActiveRecord/Connection', |
| 32 | 'ActiveSupport::Cach' => 'ActiveSupport/Caching', | 31 | 'ActiveRecord::Scoping' => 'ActiveRecord/Query', |
| 33 | 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector', | 32 | 'ActiveRecord::SpawnMethods' => 'ActiveRecord/Query', |
| 34 | 'ActiveSupport::Time' => 'ActiveSupport/TimeZones', | 33 | 'ActiveSupport::Cach' => 'ActiveSupport/Caching', |
| 35 | 'Rails::Application' => 'Rails/Application', | 34 | 'ActiveSupport::Inflector' => 'ActiveSupport/Inflector', |
| 36 | 'Rails::Engine' => 'Rails/Engine', | 35 | 'ActiveSupport::Time' => 'ActiveSupport/TimeZones', |
| 37 | 'Rails::Railtie' => 'Rails/Railtie' } | 36 | 'Rails::Application' => 'Rails/Application', |
| | 37 | 'Rails::Engine' => 'Rails/Engine', |
| | 38 | 'Rails::Generators' => 'Rails/Generators', |
| | 39 | 'Rails::Railtie' => 'Rails/Railtie' } |
| 38 | | 40 | |
| 39 | def get_type | 41 | def get_type |
| 40 | parent = at_css('.meta-parent').try(:content).to_s | 42 | parent = at_css('.meta-parent').try(:content).to_s |