summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/comics/data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/comics/data.rb b/lib/comics/data.rb
index 61bb91b..d3d3a13 100644
--- a/lib/comics/data.rb
+++ b/lib/comics/data.rb
@@ -69,7 +69,7 @@ module Comics
attr_reader :tag, :updatetime
def initialize(config, tag, data, defaults)
- @config = config
+ @tag_prefix = config.tag_prefix
@tag = tag
@data = data
@defaults = defaults
@@ -109,7 +109,7 @@ module Comics
end
def id_for(type, date)
- IDGenerator.generate(@config.tag_prefix, type, @tag, date.strftime('%F'))
+ IDGenerator.generate(@tag_prefix, type, @tag, date.strftime('%F'))
end
def latest