Skip to content

NoMethodError: undefined method `strip' for ["app/models"]:Array #531

Closed
@ghost

Description

Gemfile:

gem 'annotate', github: 'ctran/annotate_models', branch: 'develop', require: false

stderr output:

$ rake db:migrate
Running via Spring preloader in process 94924
rake aborted!
NoMethodError: undefined method `strip' for ["app/models"]:Array
-e:1:in `<main>'
Tasks: TOP => annotate_models
(See full trace by running task with --trace)

workaround: modify lib/annotate/annotate_models.rb#L747

    def split_model_dir(option_value)
      option_value = option_value.is_a?(Array) ? option_value : option_value.split(',')
      option_value.map(&:strip).reject(&:empty?)
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions