- 23 12月, 2016 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 08 8月, 2016 1 次提交
-
-
由 Xavier Noria 提交于
A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required.
-
- 07 8月, 2016 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
-
- 20 7月, 2016 1 次提交
-
-
由 Yasuo Honda 提交于
- Refer https://github.com/rsim/oracle-enhanced/pull/845 Remove `set_date_columns` which has been deprecated in Oracle enhanced adapter - Refer https://github.com/rsim/oracle-enhanced/pull/869
-
- 06 9月, 2015 1 次提交
-
-
由 Wojciech Wnętrzak 提交于
-
- 22 7月, 2015 1 次提交
-
-
由 Mehmet Emin İNAÇ 提交于
-
- 26 11月, 2013 1 次提交
-
-
由 heruku 提交于
-
- 11 9月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 18 8月, 2013 1 次提交
-
- 25 7月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 24 1月, 2013 3 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
This reverts commit 4e05bfb8. Reason: BlankTopic#blank? should not be removed to check that dynamic finder with a bang can find a model that responds to `blank?`
-
由 Akira Matsuda 提交于
-
- 13 11月, 2012 1 次提交
-
-
由 Nikita Afanasenko 提交于
-
- 05 11月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 28 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
It doesn't serve much purpose now that ActiveRecord::Base.all returns a Relation. The code is moved to active_record_deprecated_finders.
-
- 22 6月, 2012 1 次提交
-
-
由 Maximilian Schneider 提交于
previously dynamic finders only worked in combination with the actual column name and not its alias defined with #alias_attribute
-
- 27 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 26 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 25 4月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 22 3月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
Don't use this: scope :red, where(color: 'red') default_scope where(color: 'red') Use this: scope :red, -> { where(color: 'red') } default_scope { where(color: 'red') } The former has numerous issues. It is a common newbie gotcha to do the following: scope :recent, where(published_at: Time.now - 2.weeks) Or a more subtle variant: scope :recent, -> { where(published_at: Time.now - 2.weeks) } scope :recent_red, recent.where(color: 'red') Eager scopes are also very complex to implement within Active Record, and there are still bugs. For example, the following does not do what you expect: scope :remove_conditions, except(:where) where(...).remove_conditions # => still has conditions
-
- 07 1月, 2012 1 次提交
-
-
由 Bogdan Gusiev 提交于
-
- 24 12月, 2011 1 次提交
-
-
由 Alvaro Bautista 提交于
-
- 17 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 13 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 18 4月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Revert "Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead." This reverts commit f0e198bf. Conflicts: activerecord/test/models/post.rb
-
- 13 4月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead.
-
- 12 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 09 11月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
- persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 20 10月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 05 6月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
(otherwise some tests are failing which assume that this attribute will have Date value)
-
- 18 1月, 2010 1 次提交
-
-
由 Pratik Naik 提交于
-
- 08 9月, 2009 2 次提交
-
-
由 José Valim 提交于
Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
由 José Valim 提交于
Changed ActiveRecord to use new callbacks and speed up observers by only notifying events that are actually being consumed. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 30 7月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
Revert "Methods invoked within named scope Procs should respect the scope stack. [#1267 state:resolved]" This reverts commit 6a133765. Conflicts: activerecord/test/cases/named_scope_test.rb
-
- 16 7月, 2009 1 次提交
-
-
由 Szymon Nowak 提交于
[#765 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 12 3月, 2009 1 次提交
-
-
由 Elijah Miller 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-