diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 8a5ca6f91b..18af73fc89 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -38,6 +38,14 @@ module Rails def cache RAILS_CACHE end + + def public_path + @@public_path ||= File.join(self.root, "public") + end + + def public_path=(path) + @@public_path = path + end end # The Initializer is responsible for processing the Rails configuration, such |