- 26 8月, 2012 8 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit a7f4b0a1. Conflicts: activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/persistence.rb activerecord/test/cases/base_test.rb activerecord/test/cases/dirty_test.rb activerecord/test/cases/timestamp_test.rb
-
由 Rafael Mendonça França 提交于
Refactored common date and time calculations.
-
由 Rafael Mendonça França 提交于
Allow to pass Symbol or Proc into :limit option of #accepts_nested_attributes_for
-
由 Carlos Antonio da Silva 提交于
Instead of building a Blog::Post instance for every test in form helper tests, just build it in the test that uses it.
-
由 Mikhail Dieterle 提交于
-
由 Mikhail Dieterle 提交于
-
由 Rafael Mendonça França 提交于
correct handling of date selects when using both disabled and discard options
-
由 Vasiliy Ermolovich 提交于
we should take disabled option not only from `html_options` hash but from `options` hash too like `build_select` method does it. So datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true }) datetime_select("post", "updated_at", :discard_minute => true , :disabled => true) both these variants work now closes #7431
-
- 25 8月, 2012 12 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
We simplify two things here: First since * is greedy it is enough to go look for the rightmost ::, no need to ask the regexp engine to match the rest of the string since we are not validating anything, only capturing. The second simplification comes from using a look-ahead assertion, that allows us to have the capture in $&, thus removing the need of a group.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
Accept a symbol for `:in` option on inclusion and exclusion validators
-
由 José Valim 提交于
Extract ActiveRecord::SessionStore from Rails
-
由 Prem Sichanugrist 提交于
Tell people to install `activerecord-session_store` gem when it's not installed instead ofraising `NameError` on missing `ActionDispatch::Session::ActiveRecordStore`.
-
由 Prem Sichanugrist 提交于
-
由 Prem Sichanugrist 提交于
-
由 Prem Sichanugrist 提交于
This functionality will be available from gem `active_record-session_store` instead.
-
由 Gabriel Sobrinho 提交于
-
- 24 8月, 2012 9 次提交
-
-
由 Rafael Mendonça França 提交于
Fix tests that depend on run order
-
由 Xavier Noria 提交于
The new regexp has less work to do, we anchor a fixed string at the end and need no group.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Aaron Patterson 提交于
Model.select takes a variable list of arguments
-
由 Isaac Sanders 提交于
This is a cleaner version of #6916. Closes #3165.
-
- 23 8月, 2012 11 次提交
-
-
由 Vijay Dev 提交于
Update the documentation for the :autosave option on belongs_to
-
由 David Celis 提交于
I've noticed a caveat with the :autosave option biting people before. Questions arise about why they must explicitly save an associated object in their own before_save callbacks. I've updated the documentation as such to note to users that the :autosave callback occurs before any user defined callbacks. They must save the associated record themselves if altering it in their own callbacks. Signed-off-by: NDavid Celis <david@davidcelis.com>
-
由 José Valim 提交于
This reverts commit b0ab8dc0 because it was removing the contents of the message when we did not have any tag. A test case is also committed.
-
由 José Valim 提交于
The reason the test was failing was because when the test invokes `app.config`, the app is loaded and, as `eager_load` is set to true, it disables the dependency loading mechanism, so controllers that are later defined are not loaded.
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Aaron Patterson 提交于
-
由 Xavier Noria 提交于
The revised test assumed that the default permissions of a file matched the umask of the process, but in the general case that depends also on the file system. This test was failing in the /vagrant shared folder of Rails development boxes.
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
-
由 Vijay Dev 提交于
Extended documentation for `time_ago_in_words` helper
-