- 04 8月, 2013 1 次提交
-
-
由 Takehiro Adachi 提交于
According to the guide, ":save" value for the "on:" validation helper was available like below validates :name, presence: true, on: :save but this was never available according to the implementation of the valid? method, which is below # Runs all the validations within the specified context. Returns +true+ if # no errors are found, +false+ otherwise. # # If the argument is +false+ (default is +nil+), the context is set to <tt>:create</tt> if # <tt>new_record?</tt> is +true+, and to <tt>:update</tt> if it is not. # # Validations with no <tt>:on</tt> option will run no matter the context. Validations with # some <tt>:on</tt> option will only run in the specified context. def valid?(context = nil) context ||= (new_record? ? :create : :update) output = super(context) errors.empty? && output end So the documentation was always wrong since the PR proposed by @neerajdotname ( #10287 ) was rejected.
-
- 29 7月, 2013 9 次提交
-
-
由 David Heinemeier Hansson 提交于
Add Time#to_s(:iso8601) for easy conversion of times to the iso8601 format for easy Javascript date parsing
-
由 Aaron Patterson 提交于
grab executable from rubygems
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
This reverts commit 10259c3e. reason: this causes rake test_mysql and test_mysql2 fail
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 David Heinemeier Hansson 提交于
Changed stylesheet load order in the stylesheet manifest generator.
-
- 28 7月, 2013 19 次提交
-
-
由 Rafael Mendonça França 提交于
Cleanup of class_name
-
由 Rafael Mendonça França 提交于
fix order dependent test related to migration
-
由 Rafael Mendonça França 提交于
make test order independent by resetting timezone
-
由 Rafael Mendonça França 提交于
reset default timezone and make test order independent
-
由 Rafael Mendonça França 提交于
make test not depend on order
-
由 Vijay Dev 提交于
-
由 Mikhail Dieterle 提交于
-
由 Ankit Gupta 提交于
Don't think class name is needed as by default belongs_to :select will be linked to Select class.
-
由 Mikhail Dieterle 提交于
-
由 Pawel Janiak 提交于
-
由 Neeraj Singh 提交于
`NestedThroughAssociationsTest` adds records to `member_details` table. When test performs `@member_details[0]` then the order of record is not guaranteed. Hence it is best to start with a clean slate by deleting unwanted records.
-
由 Neeraj Singh 提交于
-
由 Robin Dupret 提交于
-
由 Neeraj Singh 提交于
-
由 Guillermo Iguaran 提交于
fix order dependent test
-
由 Neeraj Singh 提交于
If the order in which tests are executed is changed then test fails. This commit ensures that all migrations are run before ensuring that there are no pending migration.
-
由 Neeraj Singh 提交于
`ReflectionTest` uses column information in tests and those tests break if tests are run in random order.
-
由 Rafael Mendonça França 提交于
Minor refactor - Uses Enumerable#to_a instead of iterate and add to an array
-
由 Pablo Cantero 提交于
array
-
- 27 7月, 2013 3 次提交
-
-
由 Santiago Pastorino 提交于
Update Rails 3.2.x guide link [ci skip]
-
由 Tomas Varaneckas 提交于
-
由 Jay Hayes 提交于
-
- 26 7月, 2013 8 次提交
-
-
由 Robin Dupret 提交于
-
由 Robin Dupret 提交于
To share a certain logic across other examples, let's add a sample SQL code generated by the given Ruby code
-
由 Xavier Noria 提交于
Excluding action_view/vendor in API[ci skip]
-
由 Damien Mathieu 提交于
sorry @robin850. Thanks @fxn
-
由 Arun Agrawal 提交于
These folder not exists in system
-
由 Damien Mathieu 提交于
This reverts commit 700c6c65. Bot the `sqlite3` and `sqlite3-ruby` gems exist. https://rubygems.org/gems/sqlite3 https://rubygems.org/gems/sqlite3-ruby In fact, they both point to the same github repository. https://github.com/luislavena/sqlite3-ruby However, the last one hasn't been released since 2011, while the first one keeps getting regular releases.
-
由 Arun Agrawal 提交于
-
由 Arun Agrawal 提交于
As done here d7fc97d3
-