In some of my ruby files, mostly Rails Model files, I often encounter lines such as:
validates :thing_id, presence: { message: '^Choose a Thing' },
on: :create,
unless: Proc.new { |obj| ... some condition ... }
Where the unless: is treated like the unless directive, and so throws the indentation off for the rest of the file. This also happens with an if: option.
Has anyone found a solution for this?