aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/paths.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7587 from elia/fix-too-eager-loadingRafael Mendonça França2012-10-291-6/+12
| | | | | | Should not eager_load app/assets Conflicts: railties/CHANGELOG.md
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-3/+3
|
* Remove unneeded attr_readerRafael Mendonça França2012-10-071-1/+0
|
* Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-051-1/+1
| | | | | | | | | | | This reverts commit abf8de85519141496a6773310964ec03f6106f3f. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]]
* Use flat_map { } instead of map {}.flattenSantiago Pastorino2012-10-051-1/+1
|
* Merge pull request #6910 from mulder/fix_path_globJosé Valim2012-07-011-1/+2
|\ | | | | Persist glob when replacing a path
| * Persist glob when replacing a pathNicholas Mulder2012-06-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Rails::Paths::Root's []= is used to replace a path it should persist the previous path's glob. Without passing the glob along we get gnarly bugs when trying to wire up things like engines. module FooEngine class Engine < ::Rails::Engine isolate_namespace FooEngine config.paths['config/initializers'] = "lib/foo_engine/initializers" end end ## Example of behaviour before this commit. # # Before the initializer override: >> FooEngine::Engine.config.paths["config/initializers"].glob => "**/*.rb" # After the initializer override: >> FooEngine::Engine.config.paths["config/initializers"].glob => nil ## Example of behaviour after this commit. # # Before the initializer override: >> FooEngine::Engine.config.paths["config/initializers"].glob => "**/*.rb" # After the initializer override: >> FooEngine::Engine.config.paths["config/initializers"].glob => "**/*.rb"
* | Revert "Allow loading external route files from the router"José Valim2012-06-291-9/+1
|/ | | | | | | | | | | | | | This reverts commit 6acebb38bc0637bc05c19d87f8767f16ce79189b. Usage of this feature did not reveal any improvement in existing apps. Conflicts: actionpack/lib/action_dispatch/routing/mapper.rb guides/source/routing.textile railties/lib/rails/engine.rb railties/lib/rails/paths.rb railties/test/paths_test.rb
* removing more pathnameismsAaron Patterson2012-05-231-3/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-04-281-1/+1
|\
| * Use <tt>Foo::Bar</tt> instead of +Foo::Bar+Mark Rushakof2012-04-271-1/+1
| | | | | | | | | | | | | | | | The latter doesn't render as code in HTML output. Regex used in Rubymine to locate the latter form: (\+)(:*\w+:(?::|\w)+)(\+)
* | Allow loading external route files from the routerJose and Yehuda2012-04-251-1/+11
|/ | | | | | | | | This feature enables the ability to load an external routes file from the router via: draw :filename External routes files go in +config/routes+. This feature works in both engines and applications.
* warning removed: `&' interpreted as argument prefixArun Agrawal2012-03-311-1/+1
|
* Define Paths::Root#[]= in terms of #add.Ben Woosley2012-03-291-2/+1
|
* Drop Paths::Root initializer check of #path as it isn't checked in the ↵Ben Woosley2012-03-291-1/+0
| | | | #path= or anywhere else
* Drop unnecessary require in Rails::PathsBen Woosley2012-03-291-2/+0
|
* favor composition over inheritanceAaron Patterson2012-03-261-5/+20
|
* favor composition over inheritanceAaron Patterson2012-03-261-7/+29
|
* still need to ensure the path is a directoryAaron Patterson2012-03-261-1/+1
|
* eliminating a branch we do not need. thanks @jeremyAaron Patterson2012-03-261-30/+3
|
* stop using *args in order to simplify our constructorAaron Patterson2012-03-261-5/+4
|
* Don't depend on ivars. Thanks @fesplugasAaron Patterson2012-03-261-1/+1
|
* chdir before globbing so that we don't need to escape directory names.Aaron Patterson2012-03-231-1/+30
| | | | fixes #5521
* use File.directory? as Dir.exists? is only 1.9.2+Aaron Patterson2011-08-011-2/+2
|
* Merge pull request #2324 from zenapsis/3-1-stableSantiago Pastorino2011-08-011-0/+4
| | | | Rails 3.1 throws a Errno::ENOTDIR if files are put in assets directories
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-07-231-9/+9
|\
| * little details seen while doing a pass through what's new in docrailsXavier Noria2011-07-231-8/+8
| |
| * grammar correction for rails/paths #add method argumentsMatt Jankowski2011-07-121-2/+2
| |
* | Ensure Dir.glob is sortedJoshua Peek2011-07-111-1/+1
|/
* fix Rails::Paths::Root documentJan Xie2011-05-251-4/+3
|
* Removing deprecated config.paths.app.controller APIGuillermo Iguaran2011-05-241-26/+0
|
* commented meta codeVijay Dev2011-05-041-11/+11
|
* formatting results in commentsVijay Dev2011-05-041-8/+8
|
* Initialize these options as false if they are not givenSantiago Pastorino2011-01-091-4/+4
|
* Fixes typoRafael Mendonça França2010-10-061-2/+2
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-49/+103
| | | | method_missing.
* Add skip_eager_load!, skip_autoload! and friends to path objects.José Valim2010-07-171-28/+12
|
* A few changes were done in this commit:José Valim2010-06-281-20/+31
| | | | | | * Added :autoload to engines path API and redefine usage to be in sync with 6f83a5036d8a9c3f8ed7; * Do not autoload code in *lib* for applications (now you need to explicitly require them). This makes an application behave closer to an engine (code in lib is still autoloaded for plugins); * Always autoload code in app/ for engines and plugins. This makes engines behave closer to an application and should allow us to get rid of the unloadable hack required when controllers inside engines inherit from ApplicationController;
* Remove app/views from the load paths [#4226 state:resolved]José Valim2010-04-051-5/+17
|
* Solve some pendencies.José Valim2010-01-241-9/+14
|
* Move configuration to subfolders.José Valim2010-01-231-1/+1
|
* First steps into making Plugin < Engine.José Valim2010-01-231-1/+2
|
* Got tests working once again.José Valim2010-01-221-10/+8
|
* Refactor pluginsYehuda Katz + Carl Lerche2009-11-111-1/+5
|
* Have Rails.root be based off of config.ruCarl Lerche2009-10-141-1/+0
|
* Make rails configuration's path object's root lazyYehuda Katz + Carl Lerche2009-10-141-4/+7
|
* Reapply Rails::Application::Path tweaksYehuda Katz + Carl Lerche2009-07-061-15/+25
| | | | | Reapplies: a4bdc00fec623f72592e663e6d7830eea0bc6ea4 3c1dab72259d01c6335bf359d7f9b3af69d45bb4
* Revert "Modify the Rails::Application::Path object to allow for more concise ↵Pratik Naik2009-07-031-25/+15
| | | | | | | | path definition." This reverts commit 913bb2f4c2feb79dcbc9ed2c0fb1ef6d436f7d02. Reason : The server does not start
* Modify the Rails::Application::Path object to allow for more concise path ↵Yehuda Katz + Carl Lerche2009-07-021-15/+25
| | | | definition.
* Add #concat to Rails::Application::PathCarl Lerche2009-06-301-0/+4
|