mirror of
https://github.com/github/rails.git
synced 2026-02-04 11:15:08 -05:00
Ensure ActionView::PathSet::Path is not initialized with a precompiled path
This commit is contained in:
@@ -28,6 +28,8 @@ module ActionView #:nodoc:
|
||||
delegate :to_s, :to_str, :inspect, :to => :path
|
||||
|
||||
def initialize(path)
|
||||
raise ArgumentError, "path already is a Path class" if path.is_a?(Path)
|
||||
|
||||
@path = path.freeze
|
||||
reload!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user