lib/middleman-webcomic/feature.rb in middleman-webcomic-0.5.0 vs lib/middleman-webcomic/feature.rb in middleman-webcomic-0.5.1
- old
+ new
@@ -136,10 +136,10 @@
end
# Story Helpers
def start_story_path_for(object)
- story = if object.is_a? Story
+ story = if object.is_a? ::Middleman::Webcomic::Story
object
else # it's a comic... right?
data.webcomic.stories.detect {|s| s.title == object.story }
end
comic_path_for story.comics.last
\ No newline at end of file