| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Originally, this guide was called "AJAX on Rails," but really, it's
not just about AJAX. This was never finished, but it got accidentally
generated and Google found out about it.
In the meantime, all the guides were converted to markdown, as well.
So here's a new guide. It covers all of the built-in helpers that
use ajax requests, it covers CoffeeScript, and it covers UJS.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
check_box value can be not only an object of Array class
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
there is a chance that `value` is a Set or an object that reponses to `include?` method so let's handle this case
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit 83846838252397b3781eed165ca301e05db39293.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | | |
Use `Rails.env` instead of `ENV['RAILS_ENV']`.
Fix behavior of `rake db:structure:load`.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`ENV['RAILS_ENV']` is not defined unless explicitly specified on the
command line when running `rake db:structure:load`.
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Small change to active_record/locale/en.yml
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Moved activerecord.errors.messages.taken to errors.messages.taken so that translations for, e.g., errors.attributes.email.taken don't get overridden.
Test that the translation for 'taken' can be overridden
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Add i18n scope to disance_of_time_in_words.
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
This fixes #733.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Revert "truncate debug.log on each test run"
I'm reverting this since we may want to see SQL results of subsequent tests run, to, per example, copare them.
I didn't realized this first time but @yahonda pointed me out.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit 98043c689f945cabffc043f4bdc80ab2a7edc763.
Because if every time `debug.log` is truncated,
developers have no way to see the previous ActiveRecord unit test results.
`debug.log` file can be easily reduced
by executing `$ touch /dev/null > debug.log` periodically.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
truncate debug.log on each test run
|
| | | | | | | |
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I think it's going to be too much pain to try to transition the
:active_record load hook from executing against Base to executing
against Model.
For example, after Model is included in Base, and modules included in
Model will no longer get added to the ancestors of Base.
So plugins which wish to be compatible with both Model and Base should
use the :active_record_model load hook which executes *before* Base gets
loaded.
In general, ActiveRecord::Model is an advanced feature at the moment and
probably most people will continue to inherit from ActiveRecord::Base
for the time being.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
So that we can bundle and travis can run our tests.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reflects the fact that it now impact inserts as well as updates.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In non-strict mode it is '', but if someone is in strict mode then we
should honour the strict semantics.
Also, this removes the need for a completely horrible hack in dirty.rb.
Closes #7780
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is similar to #first_or_create, but slightly different and a nicer
API. See the CHANGELOG/docs in the commit.
Fixes #7853
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Do we actually need this cache?
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
need to check for the length of @filters
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
rather than exiting the process.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Extend date_select helper functionality.
Conflicts:
actionpack/CHANGELOG.md
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Setting the action_dispatch.rack_cache options to true or a hash should
be the way to enable it.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Credit for previous commit [ci skip]
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | |
| | | | | | |
| | | | | | | |
senny/active_model_validations_requires_necessary_files
active_model/validations requires necessary files to run
|
| | | | | | | |
|