Skip to content

Commit

Permalink
Merge pull request #28 from mirakui/mirakui/root_dir
Browse files Browse the repository at this point in the history
Use absolute path for view_path
  • Loading branch information
mirakui committed Apr 11, 2013
2 parents 1bb38a6 + e24d4ee commit f2d43e8
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 f2d43e8

Please sign in to comment.