rails/railties
Piotr Sarnacki 7c95be54b4 Fix generators to help with ambiguous ApplicationController issue
In development mode, dependencies are loaded dynamically at runtime,
using `const_missing`. Because of that, when one of the constants is
already loaded and `const_missing` is not triggered, user can end up
with unexpected results.

Given such file in an Engine:

```ruby
module Blog
  class PostsController < ApplicationController
  end
end
```

If you load it first, before loading any application files, it will
correctly load `Blog::ApplicationController`, because second line will
hit `const_missing`. However if you load `ApplicationController` first,
the constant will be loaded already, `const_missing` hook will not be
fired and in result `PostsController` will inherit from
`ApplicationController` instead of `Blog::ApplicationController`.

Since it can't be fixed in `AS::Dependencies`, the easiest fix is to
just explicitly load application controller.

closes #6413
2012-05-20 16:28:02 -07:00
..
bin Just provide the executable for railtie. This should be fine since Rubygems now warns before overriding them. 2011-09-12 09:05:11 -07:00
lib Fix generators to help with ambiguous ApplicationController issue 2012-05-20 16:28:02 -07:00
test Fix generators to help with ambiguous ApplicationController issue 2012-05-20 16:28:02 -07:00
.gitignore Ignore log folder created by tests 2009-10-16 19:25:21 -05:00
CHANGELOG.md Add CHANGELOG entry for #6369 & #6391 2012-05-19 14:19:19 +01:00
MIT-LICENSE Updated copyright notices for 2012 2011-12-31 20:30:08 +00:00
railties.gemspec Allow Thor 0.15 and 1.0, to be released shortly 2012-04-28 15:55:58 -07:00
Rakefile Remove useless load path modifications 2012-05-11 19:00:35 -03:00
README.rdoc Added link to MIT license. Would love commentary on whether this seems appropriate. 2011-12-22 21:12:08 -08:00

= Railties -- Gluing the Engine to the Rails

Railties is responsible for gluing all frameworks together. Overall, it:

* handles the bootstrapping process for a Rails application;

* manages the +rails+ command line interface;

* and provides the Rails generators core.


== Download

The latest version of Railties can be installed with RubyGems:

* gem install railties

Source code can be downloaded as part of the Rails project on GitHub

* https://github.com/rails/rails/tree/master/railties

== License

Railties is released under the MIT license:

* http://www.opensource.org/licenses/MIT

== Support

API documentation is at

* http://api.rubyonrails.org

Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:

* https://github.com/rails/rails/issues