Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
annotate
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • open-source
  • annotate
  • Repository

Switch branch/tag
  • annotate
  • lib
  • tasks
History Find file
  • Source code
  • Download zip
  • Download tar.gz
  • Download tar.bz2
  • Download tar
  • Emil Sågfors's avatar
    Prevent root_dir option from being empty (#448) · 8341983f
    Emil Sågfors authored 8 years ago
    * Prevent root_dir option from being empty
    
    When setting root_dir to an empty string (as is done in the default rake
    task config) this line previously caused root_dir to become an empty
    array.
    
    This in turn caused factories, specs etc not to be annotated.
    
    This is just a quick band-aid on a larger problem. We have option
    parsing spread out over many different places, with slight mismatches
    like this in the assumptions made.
    
    * Handle blank values & comma-separated strings in AnnotateModels.root_dir
    
    These cases are currently handled (inconsistently) in the different
    option parsing routines.
    
    * Pass root_dir forward unmodified
    
    The different cases are now handled inside AnnotateModels
    8341983f
Name
Last commit
Last update
..
annotate_models.rake Prevent root_dir option from being empty (#448) 8 years ago
annotate_routes.rake Add :ignore_routes option to skip routes which should not be annotated based on regex 9 years ago
migrate.rake Support "routes" => "true" in auto_annotate_models.rake, #245 9 years ago