• Yorick Peterse's avatar
    Fix detecting nested EE constants in RuboCop · 9722158c
    Yorick Peterse authored
    The InjectEnterpriseEditionModule cop would not detect certain nested EE
    constants such as `EE::Foo::Bar::Baz`. This could result in it not
    enforcing `prepend` being placed on the last line. This commit fixes
    this by just performing a string match on the line, instead of relying
    on AST matching.
    9722158c
inject_enterprise_edition_module.rb 1.82 KB