Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use teardown hook to return the initial state of the object | Rafael Mendonça França | 2012-08-26 | 1 | -16/+5 |
| | |||||
* | Move the serialized attribute tests to their own file | Rafael Mendonça França | 2012-08-26 | 3 | -207/+214 |
| | |||||
* | Move test to the correct file | Rafael Mendonça França | 2012-08-26 | 3 | -12/+12 |
| | |||||
* | Remove some entries from the 4.0 release notes | Rafael Mendonça França | 2012-08-26 | 1 | -25/+0 |
| | | | | We need more :heart: in this file. There are a lot of outdated entries. | ||||
* | Remove CHANGELOG entry for the update_attribute removal. | Rafael Mendonça França | 2012-08-26 | 1 | -6/+0 |
| | | | | We reverted the removal because the new deprecation policy | ||||
* | Use verify_readonly_attribute in the update_columns method | Rafael Mendonça França | 2012-08-25 | 1 | -1/+1 |
| | |||||
* | Revert "Remove private verify readonly attr method" | Rafael Mendonça França | 2012-08-25 | 1 | -1/+5 |
| | | | | This reverts commit 7a8aee08b610f6edbfe5be076dc14e5cdcf1355e. | ||||
* | Revert "Remove update_attribute." | Rafael Mendonça França | 2012-08-25 | 4 | -7/+71 |
| | | | | | | | | | | | This reverts commit a7f4b0a1231bf3c65db2ad4066da78c3da5ffb01. 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 | ||||
* | Merge pull request #7029 from panthomakos/date-and-time | Rafael Mendonça França | 2012-08-25 | 7 | -848/+433 |
|\ | | | | | Refactored common date and time calculations. | ||||
| * | Refactored common date and time calculations. | Pan Thomakos | 2012-08-04 | 7 | -848/+433 |
| | | | | | | | | | | | | | | | | * Added the `DateAndTime::Calculations` module that is included in Time and Date. It houses common calculations to reduce duplicated code. * Simplified and cleaned-up the calculation code. * Removed duplication in tests by adding a behavior module for shared tests. I also added some missing tests. | ||||
* | | Merge pull request #7449 from Mik-die/nested-limits | Rafael Mendonça França | 2012-08-25 | 4 | -11/+49 |
|\ \ | | | | | | | Allow to pass Symbol or Proc into :limit option of #accepts_nested_attributes_for | ||||
| * | | changelog #7449 | Mikhail Dieterle | 2012-08-26 | 1 | -0/+4 |
| | | | |||||
| * | | allow to pass Symbol or Proc into :limit option of ↵ | Mikhail Dieterle | 2012-08-26 | 3 | -11/+45 |
| | | | | | | | | | | | | #accepts_nested_attributes_for | ||||
* | | | Create variable only in the test that uses it | Carlos Antonio da Silva | 2012-08-25 | 1 | -3/+3 |
|/ / | | | | | | | | | Instead of building a Blog::Post instance for every test in form helper tests, just build it in the test that uses it. | ||||
* | | Merge pull request #7435 from nashby/fix-issue-7431 | Rafael Mendonça França | 2012-08-25 | 3 | -2/+34 |
|\ \ | | | | | | | correct handling of date selects when using both disabled and discard options | ||||
| * | | correct handling of date selects when using both disabled and discard options | Vasiliy Ermolovich | 2012-08-25 | 3 | -2/+34 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | simplifies yet another regexp | Xavier Noria | 2012-08-25 | 1 | -1/+1 |
| | | |||||
* | | instead of returning $& if =~ succeeds, use String#[] | Xavier Noria | 2012-08-25 | 1 | -1/+1 |
| | | |||||
* | | simplifies a regexp | Xavier Noria | 2012-08-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | use Hash#fetch to eliminate conditional | Aaron Patterson | 2012-08-24 | 1 | -8/+3 |
| | | |||||
* | | call methods on AR::Model after ClassMethods module is defined | Aaron Patterson | 2012-08-24 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #7342 from sobrinho/master | Rafael Mendonça França | 2012-08-24 | 6 | -5/+64 |
|\ \ | | | | | | | Accept a symbol for `:in` option on inclusion and exclusion validators | ||||
| * | | Accept a symbol for `:in` option on inclusion and exclusion validators | Gabriel Sobrinho | 2012-08-24 | 6 | -5/+64 |
| | | | |||||
* | | | Merge pull request #7436 from sikachu/master-remove-active_record-session_store | José Valim | 2012-08-24 | 25 | -976/+41 |
|\ \ \ | |/ / |/| | | Extract ActiveRecord::SessionStore from Rails | ||||
| * | | Raise more helpful error message on missing gem | Prem Sichanugrist | 2012-08-24 | 2 | -0/+26 |
| | | | | | | | | | | | | | | | | | | Tell people to install `activerecord-session_store` gem when it's not installed instead ofraising `NameError` on missing `ActionDispatch::Session::ActiveRecordStore`. | ||||
| * | | Remove meta Sesion Migration generator | Prem Sichanugrist | 2012-08-24 | 2 | -16/+0 |
| | | | |||||
| * | | Update guide/release note about AR::SessionStore | Prem Sichanugrist | 2012-08-24 | 4 | -14/+6 |
| | | | |||||
| * | | Extract ActiveRecord::SessionStore from Rails | Prem Sichanugrist | 2012-08-24 | 18 | -947/+10 |
|/ / | | | | | | | | | This functionality will be available from gem `active_record-session_store` instead. | ||||
* | | Merge pull request #7058 from frodsan/fix_as_random_tests | Rafael Mendonça França | 2012-08-24 | 6 | -25/+36 |
|\ \ | | | | | | | Fix tests that depend on run order | ||||
| * | | Fix ActionMailer tests that depend on run order | Francesco Rodriguez | 2012-08-23 | 1 | -5/+9 |
| | | | |||||
| * | | Fix ActiveModel tests that depend on run order | Francesco Rodriguez | 2012-08-23 | 1 | -6/+4 |
| | | | |||||
| * | | Fix ActiveSupport tests that depend on run order | Francesco Rodriguez | 2012-08-23 | 4 | -14/+23 |
| | | | |||||
* | | | simplifies a regexp | Xavier Noria | 2012-08-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | The new regexp has less work to do, we anchor a fixed string at the end and need no group. | ||||
* | | | ivar will always be defined, so stop checking | Aaron Patterson | 2012-08-23 | 1 | -3/+1 |
| | | | |||||
* | | | mysql does not build on Ruby 2.0.0 at the moment | Aaron Patterson | 2012-08-23 | 1 | -1/+1 |
|/ / | |||||
* | | Merge pull request #7434 from frodsan/select_list_arguments | Aaron Patterson | 2012-08-23 | 2 | -11/+20 |
|\ \ | | | | | | | Model.select takes a variable list of arguments | ||||
| * | | Model.select takes a variable list of arguments. | Isaac Sanders | 2012-08-23 | 2 | -11/+20 |
|/ / | | | | | | | | | | | This is a cleaner version of #6916. Closes #3165. | ||||
* | | Merge pull request #7061 from davidcelis/master | Vijay Dev | 2012-08-23 | 1 | -1/+3 |
|\ \ | | | | | | | Update the documentation for the :autosave option on belongs_to | ||||
| * | | Update the documentation for the :autosave option | David Celis | 2012-08-23 | 1 | -1/+3 |
|/ / | | | | | | | | | | | | | | | | | | | | | 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: David Celis <david@davidcelis.com> | ||||
* | | Revert "Use join without default separator" | José Valim | 2012-08-23 | 2 | -2/+7 |
| | | | | | | | | | | | | This reverts commit b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577 because it was removing the contents of the message when we did not have any tag. A test case is also committed. | ||||
* | | Fix failure on middleware/exceptions_test | José Valim | 2012-08-23 | 2 | -11/+5 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Update the ducumentation about the before_eager_load callback [ci skip] | Rafael Mendonça França | 2012-08-22 | 1 | -1/+1 |
| | | |||||
* | | before_eager_load only runs when eager_load is true | Rafael Mendonça França | 2012-08-22 | 1 | -4/+4 |
| | | |||||
* | | skip the memcache tests if the memcache server is not up | Aaron Patterson | 2012-08-22 | 2 | -48/+50 |
| | | |||||
* | | revises a brittle test in Active Support | Xavier Noria | 2012-08-22 | 2 | -12/+22 |
| | | | | | | | | | | | | | | 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. | ||||
* | | edit secret token template comment [ci skip] | Vijay Dev | 2012-08-23 | 1 | -1/+1 |
| | | |||||
* | | copy edit the time_ago_in_words helper docs | Vijay Dev | 2012-08-23 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #7398 from iamvery/time_ago_in_words-docs | Vijay Dev | 2012-08-22 | 1 | -0/+7 |
|\ \ | | | | | | | Extended documentation for `time_ago_in_words` helper | ||||
| * | | Extended documentation for `time_ago_in_words` helper | Jay Hayes | 2012-08-20 | 1 | -0/+7 |
| | | | |||||
* | | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-08-22 | 2 | -19/+18 |
|\ \ \ |