lib/exegesis/design.rb in mattly-exegesis-0.2.2 vs lib/exegesis/design.rb in mattly-exegesis-0.2.3

- old
+ new

@@ -19,10 +19,10 @@ def self.design_name @design_name ||= name.scan(/^(?:[A-Za-z0-9\:]+::)([A-Za-z0-9]+)Design$/).first.first.downcase end def self.compose_canonical - Dir[design_directory + 'views' + '**/*.js'].each do |view_func| + Dir[(design_directory + 'views' + '**/*.js').to_s].each do |view_func| path = view_func.split('/') func = path.pop.sub(/\.js$/,'') name = path.pop canonical_design['views'][name] ||= {} canonical_design['views'][name][func] = File.read(view_func) \ No newline at end of file