| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In the current router DSL, using the +match+ DSL
method will match all verbs for the path to the
specified endpoint.
In the vast majority of cases, people are
currently using +match+ when they actually mean
+get+. This introduces security implications.
This commit disallows calling +match+ without
an HTTP verb constraint by default. To explicitly
match all verbs, this commit also adds a
:via => :all option to +match+.
Closes #5964
|
|/ / / /
| | | |
| | | | |
css, scss and css.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
So apps that accidentally add middlewares later aren't unwittingly dumping them in a black hole.
Closes #5911
|
| | | | |
|
| |/ /
|/| |
| | |
| | | |
Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In case `source_roout` is not set, `default_source_root` is used,
which includes also `templates` directory. If there is no `templates`
directory, `default_source_root` is not available and USAGE will not
be displayed. USAGE should be also checked based on default
directory excluding `templates`.
|
| | |
| | |
| | |
| | | |
#path= or anywhere else
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[Closes #2507]
Changes:
* `Rails.initialized=` has been removed
* `Rails.initialized?` and `Rails.application.initialized?` are now
* delegating to `MyApp::Application.initialized?`
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix environment support for rails server, and match interface of rails console
|
| | | |
| | | |
| | | |
| | | | |
rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
When launching rails server from the command line with a rails environment specified such as `rails server RAILS_ENV=production` an error would occur since rails will try to use `RAILS_ENV=production` as it's server.
When launching rails with a specified server such as thin `rails server thin RAILS_ENV=production` no error will be thrown, but rails will not start up in the specified environment.
This fixes both of those cases
|
| | |
| | |
| | |
| | | |
rails/rails@9299bfdcd387253d83b645c205b8df477f2d0940.
|
| | |
| | |
| | |
| | | |
@spastorino request
|
|\ \ \
| | | |
| | | | |
Remove blank line from generated migration
|
| |/ / |
|
|/ /
| |
| |
| |
| | |
When generating a migration that removes a field with an index, the down
will add both the field and its index.
|
|\ \
| | |
| | | |
Build fix for app_generator_test.rb
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Fix GH #5435. db:structure:dump should be re-enable.
|
| | | |
|
|/ / |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The main goal is to not generate the format.html block in scaffold
controller, and to generate a different functional test as we don't rely
on redirects anymore, we should test for http responses.
In addition to that, the :edit action is removed from the http
controller and the edit route is not generated by default, as they
usually do not make sense in this scenario.
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| |
| |
| | |
generator options
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| |
| |
| |
| | |
Change application controller template accordingly, to inherit from
ActionController::HTTP and not generate protect_from_forgery call.
[Carlos Antonio da Silva & Santiago Pastorino]
|
| |
| |
| |
| |
| |
| | |
More info http://edgeguides.rubyonrails.org/api_app.html
[Carlos Antonio da Silva & Santiago Pastorino]
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Refactor the test_unit scaffold generator to use the key_value method
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove Active Resource source files from the repository.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Dear Active Resource,
It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository.
I will miss you,
@sikachu.
|
| | |
| | |
| | |
| | | |
explicitly
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| | |
It's already fixed and the fix was actually in journey library,
but with #4314 it reappeared second time, so probably this
kind of integration test will be good to have to not allow it to
sneak in after changes in journey or rails itself.
|
| | |
|