A well-named override will typically describe what it's doing in the file name itself. Specifying the 'name' parameter in such cases is redundant and can be done automatically by the initializer.
Example:
Given the file app/overrides/remove_h1_from_products_index.rb, the name of the Deface::Override would default to remove_h1_from_products_index_NN where NN is the line number on which the initializer is called.
A well-named override will typically describe what it's doing in the file name itself. Specifying the 'name' parameter in such cases is redundant and can be done automatically by the initializer.
Example:
Given the file
app/overrides/remove_h1_from_products_index.rb
, thename
of theDeface::Override
would default toremove_h1_from_products_index_NN
whereNN
is the line number on which the initializer is called.