lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.32 vs lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.33
- old
+ new
@@ -37,14 +37,10 @@
end
return false
end
def page
- unless @page
-
- @page = Page.new(Octopress.site, source_dir, page_dir, file, plugin.config)
- end
- @page
+ @page ||= Page.new(Octopress.site, source_dir, page_dir, file, plugin.config)
end
def info
message = super
message.ljust(25) + url_info