Skip to content

No go to definition response when using Active[Record|Model]::Validations#validate #675

@bart-westenenk-bex

Description

@bart-westenenk-bex

The following code snippet does not provide a go to definition response, while I would expect one.

class Foo < ActiveRecord::Base
  validate :bar

  private

  def bar
    errors.add(:base, :woof)
  end
end

I would expect a go to definition response to go to def bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions