diff --git a/lib/sitemap_generator/templates.rb b/lib/sitemap_generator/templates.rb index 6f37235b..512c107c 100644 --- a/lib/sitemap_generator/templates.rb +++ b/lib/sitemap_generator/templates.rb @@ -13,7 +13,7 @@ class Templates } # Dynamically define accessors for each key defined in FILES - attr_accessor(*FILES.keys) + attr_writer(*FILES.keys) FILES.each_key do |name| eval(<<-ACCESSOR, binding, __FILE__ , __LINE__ + 1)