1. 24 Jun, 2022 2 commits
  2. 11 Feb, 2022 1 commit
  3. 10 Feb, 2022 3 commits
  4. 08 Feb, 2022 1 commit
  5. 03 Feb, 2022 2 commits
  6. 01 Feb, 2022 1 commit
  7. 31 Jan, 2022 1 commit
  8. 14 Jun, 2021 4 commits
  9. 12 Jun, 2021 1 commit
  10. 10 May, 2021 1 commit
  11. 26 Apr, 2021 6 commits
  12. 24 Mar, 2021 3 commits
  13. 03 Jan, 2021 3 commits
  14. 01 Jul, 2020 1 commit
  15. 18 May, 2020 2 commits
  16. 17 May, 2020 1 commit
  17. 09 May, 2020 1 commit
  18. 08 May, 2020 1 commit
    • Adding option to skip loading models from subdirectories (#767) · 508d06a8
      ethanbresler authored
      Currently, the models annotator automatically attempts to find a class with a matching name at the bottom of project's directory tree before going up into specific engine's models.  This causes issues with models that share names with classes in other engines or lower classes in the project's directory.   This PR adds the option to skip attempts to load classes from lower directories and just uses the model's file path directly. 
      
      #674 
  19. 07 May, 2020 1 commit
  20. 06 Apr, 2020 2 commits
  21. 05 Apr, 2020 2 commits
    • Add methods to AnnotateRoutes::HeaderGenerator and refactor methods (#792) · ce7f22df
      Shu Fujita authored
      cf. #790 
      
      In order to refactor `AnnoateRoutes`, I added methods to `AnnotateRoutes::HeaderGenerator` and refactor methods.
      
      I will add `AnnotateRoutes::AnnotationProcessor` and `AnnotateRoutes::RemovalProcessor` in next PR.
    • Fix output for multiline column comments (#779) · 214da4f6
      Troy Rosenberg authored
      Closes #778 
      
      If a column comment includes the newline character, the newline character
      would be "printed" into the annotation block resulting in a line break
      and an uncommented line.
      
      For example, for the following table:
      
      ```
      create_table "users", force: :cascade do |t|
        t.string "name", comment: "This is a comment.\nWith two lines!"
        t.datetime "created_at", precision: 6, null: false
        t.datetime "updated_at", precision: 6, null: false
      end
      ```
      
      annotating the model with the `--with-comment` flag will result in:
      
      ```
      \# == Schema Information
      \#
      \# Table name: users
      \#
      \#  id                                       :bigint           not null, primary key
      \#  name(This is a comment.
      With two lines!) :string
      \#  created_at                               :datetime         not null
      \#  updated_at                               :datetime         not null
      \#
      ```
      
      This uncommented line would result in invalid Ruby and cause the file to
      no longer be valid.
      
      This fix replaces the newline character with an escaped version, so the
      output will look more like:
      
      ```
      \# == Schema Information
      \#
      \# Table name: users
      \#
      \#  id                                       :bigint           not null, primary key
      \#  name(This is a comment.\nWith two lines!):string
      \#  created_at                               :datetime         not null
      \#  updated_at                               :datetime         not null
      \#
      ```