Permalink
Browse files

pluralize views dir

  • Loading branch information...
1 parent 963b03a commit caff0318667e958d4d65b534c64f3e69a7ba4bfb @tcrayford tcrayford committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/raptor/templates.rb
View
4 lib/raptor/templates.rb
@@ -4,8 +4,8 @@ module Raptor
class FindsLayouts
LAYOUT_FILENAME = 'layout.html.erb'
def self.find(path)
- in_same_dir = File.join('view', path, LAYOUT_FILENAME)
- in_root_dir = File.join('view', LAYOUT_FILENAME)
+ in_same_dir = File.join('views', path, LAYOUT_FILENAME)
+ in_root_dir = File.join('views', LAYOUT_FILENAME)
if File.exist?(in_same_dir)
Layout.new(in_same_dir)
elsif File.exist?(in_root_dir)

0 comments on commit caff031

Please sign in to comment.