| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commits 911a0859ac065aa8e8834ac985353d659c7c7b65 and
30b31f51af6f7094c4a27b086755fc66c368d6fa.
Reason: these changes make the Active Model tests fail randomly.
Some examples:
http://travis-ci.org/#!/rails/rails/jobs/1498992
http://travis-ci.org/#!/rails/rails/jobs/1496948
http://travis-ci.org/#!/rails/rails/jobs/1489985
This script was used to reproduce these breaks:
https://gist.github.com/f6828a03ee4d40bffbc3
200 times, 0 failures
|
| |
| |
| |
| |
| | |
Similarly to 6525002, this allows to use routes helpers for mounted
helpers, but this time in ActionView::TestCase
|
| | |
|
| |
| |
| |
| | |
Correct the use of to_model in polymorphic routing
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In integration tests, you might want to use helpers from engines that
you mounted in your application. It's not hard to add it by yourself,
but it's unneeded boilerplate. mounted_helpers are now included by
default. That means that given engine mounted like:
mount Foo::Engine => "/foo", :as => "foo"
you will be able to use paths from this engine in tests this way:
foo.root_path #=> "/foo"
(closes #6573)
|
|\ \
| | |
| | | |
remove unneeded blank line from !namespeced? generated controllers
|
|/ / |
|
|\ \
| | |
| | | |
Revert "Only include Rake::DSL if it's defined."
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 82c3aca17e78d25f217702e530586673f2a219d7.
Reason: Ruby 1.9.3 is shipped with Rake > 0.9
|
|\ \ \
| | | |
| | | | |
improve readability of AR explain result
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
modulize AR::NullRelation
|
| | | |
|
|/ /
| |
| |
| | |
now we can invoke previously added scope extension methods
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
* master-sec:
Strip [nil] from parameters hash. Thanks to Ben Murphy for reporting this!
predicate builder should not recurse for determining where columns. Thanks to Ben Murphy for reporting this
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks to Ben Murphy for reporting this!
CVE-2012-2660
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks to Ben Murphy for reporting this
CVE-2012-2661
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
jeremyf/extract-force-ssl-filter-logic-to-separate-method
Extracted redirect logic from ActionController::Force::ClassMethods.forc...
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Prior to this patch the existing .force_ssl method handles both defining
the filter and handling the logic for performing the redirect.
With this patch the logic for redirecting to the HTTPS protocol is
separated from the filter logic that determines if a redirect should
occur. By separating the two levels of behavior, an instance method
for ActionController (i.e. #force_ssl_redirect) is exposed and available
for more granular SSL enforcement.
Cleaned up indentation.
|
| | | |
| | | |
| | | |
| | | | |
Eliminate the warnings generated by redefining methods and constants.
|
|\ \ \ \
| |/ / /
|/| | | |
Add code statistics for Javascript and CoffeeScript files
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CoffeeScript files to `rake stats` task
Orignal PR was #2270
Thanks to @nfm
|
| | | |
| | | |
| | | |
| | | | |
Missed that too, thanks again @splattael.
|
| | | |
| | | |
| | | |
| | | | |
Thanks @splattael.
|
| | | |
| | | |
| | | |
| | | | |
Add some tests for link_to with blocks and escaping content.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Prefer Hash#[]= over Hash#merge when setting a value.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
Remove :to_sym call from public_instance_methods iteration, as such
methods in Ruby 1.9 already return symbols. Initialize valid conditions
with controller/action instead of setting them afterwards.
|
| | | |
|
| | |
| | |
| | |
| | | |
serialized values to indifferent access.
|
| | |
| | |
| | |
| | | |
This will fix the travis-ci build
|
| | |
| | |
| | |
| | | |
f4d7af67ffc90f2542afa50c7579fc83ea4f45f2
|
|\ \ \
| | | |
| | | | |
Changed symbol platform to platforms for the commented out call to gem 'therubyracer'.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
'therubyracer'.
Dependency.rb expects the symbol to be named :platforms as opposed to platform. RubyMine's inspections indicate that the symbol should be named :platforms.
|
|\ \ \
| | | |
| | | | |
Fix various bugs with console arguments and improve test coverage
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
Allow hyphens in environment names again.
|
|\ \ \
| | | |
| | | | |
Properly discover a connection is closed in postgresql_adapter
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
PQstatus doesn't properly test if future operations will succeed. A
PQping function is added to libpq in PostgreSQL 9.1, but if we rely
on it, everyone on earlier versions of Postgres is out of luck,
and the pg gem wouldn't have the 'fix' until the next release.
Thanks to @cbrecabarren and @ged for handling all the dirty details.
Closes #3392.
|
|\ \ \ \
| | | | |
| | | | | |
accept a block in button_to helper
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Make possible to use a block in button_to helper if button text is hard
to fit into the name parameter, e.g.:
<%= button_to [:make_happy, @user] do %>
Make happy <strong><%= @user.name %></strong>
<% end %>
# => "<form method="post" action="/users/1/make_happy" class="button_to">
# <div>
# <button type="submit">
# Make happy <strong>Name</strong>
# </button>
# </div>
# </form>"
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Remove deprecated ActiveSupport::JSON::Variable.
|