Skip to content

Commit

Permalink
Use absolute path for view_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Issei Naruta committed Apr 8, 2013
1 parent 1bb38a6 commit e24d4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chanko/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def to_prefix
end

def view_path
"#{Config.units_directory_path}/#{unit_name}/views"
Rails.root.join("#{Config.units_directory_path}/#{unit_name}/views").to_s
end

def find_function(identifier, label)
Expand Down

0 comments on commit e24d4ee

Please sign in to comment.