Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When Ruby warnings are enabled, this is printed when loading the sitemap_generator gem: > sitemap_generator-6.3.0/lib/sitemap_generator/templates.rb:16):1: warning: method redefined; discarding old sitemap_sample This is because an attr reader (e.g. `sitemap_sample`) was being defined via `attr_accessor` and then immediately redefined with `define_method`. Fix by using `attr_writer` instead of `attr_accessor`, so that the attr reader is not defined twice.
- Loading branch information