lib/plate/site.rb in plate-0.5.1 vs lib/plate/site.rb in plate-0.5.2
- old
+ new
@@ -28,11 +28,11 @@
%w( assets layouts pages posts ).each do |group|
class_eval "def #{group}; load!; @#{group}; end"
end
def all_files
- @all_files ||= self.assets + self.layouts + self.pages + self.posts
+ @all_files ||= self.assets + self.layouts + self.pages + self.posts.to_a
end
# All extensions that are registered, as strings.
def asset_engine_extensions
@asset_engine_extensions ||= self.registered_asset_engines.keys.collect { |e| ".#{e}" }
@@ -237,10 +237,10 @@
@posts.add(Post.new(self, file))
end
end
end
- @posts.sort
+ @posts.sort!
log("#{@posts.size} posts loaded") if log
@posts
end
\ No newline at end of file