- 02 12月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
This makes me happy!
-
由 David Heinemeier Hansson 提交于
Revert "Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e8.
-
由 David Heinemeier Hansson 提交于
Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack
-
- 01 12月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
Add hackery to make Syck use encode_with/init_with. Fixes 1.8 after recent changes to attribute serialization.
-
由 Jon Leighton 提交于
Implement a mini state machine for serialized attributes. This means we do not have to deserialize the values upon initialization, which means that if we never actually access the attribute, we never have to deserialize it.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 30 11月, 2011 9 次提交
-
-
由 Bogdan Gusiev 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
This only existed to support methods like `set_table_name` in Active Record, which are themselves being deprecated.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 29 11月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 28 11月, 2011 1 次提交
-
-
由 Josh Susser 提交于
-
- 20 11月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 07 11月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 06 11月, 2011 2 次提交
-
-
由 Justin Mazzi 提交于
"Returns true if the specified attribute has been set by the user or by a database load and is neither nil nor empty?" Fixes #1613
-
由 Jon Leighton 提交于
-
- 14 10月, 2011 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 13 10月, 2011 1 次提交
-
-
由 Steve Bourne 提交于
'Type' is a reserved column for STI. Changed conditions example to avoid using that column name as an example. The example isn't STI-related (and mentioning STI here is needless clutter), so changing to avoid accidentally encouraging users to use 'type' as a column name for other purposes.
-
- 06 10月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit ee2be435.
-
- 05 10月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
If we don't have a primary key when we ask for it, it's better to fail fast. Fixes GH #2307.
-
- 27 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Closes #2807.
-
- 14 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
For consistency with find_or_initialize_by. Also remove first_or_build alias.
-
- 13 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This fixes a situation I encountered where a subclass would cache the name of a generated attribute method in @_defined_class_methods. Then, when the superclass has it's attribute methods undefined, the subclass would always have to dispatch through method_missing, because the presence of the attribute in @_defined_class_methods would mean that it is never generated again, even if undefine_attribute_methods is called on the subclass. There various other confusing edge cases like this. STI classes share columns, so let's just keep all the attribute method generation state isolated to the base class.
-
- 31 8月, 2011 1 次提交
-
-
由 Andrés Mejía 提交于
This let's you write things like: User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson", :hot => true) Related to #2420.
-
- 30 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 24 8月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 16 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
In 1efd8828, ConnectionAdapters was put under eager_autoload. Due to the requires in that file, this caused ConnectionSpecification to be loaded, which references ActiveRecord::Base, which means the database connection is established. We do not want to connect to the database when Active Record is loaded, only when ActiveRecord::Base is first referenced by the user.
-
- 14 8月, 2011 2 次提交
-
-
由 Florent Guilleux 提交于
-
由 Xavier Noria 提交于
Reason: The hash form is secure, and preferred over the array form if possible. This reverts commit 6dc74959.
-
- 13 8月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 09 8月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Make it the responsibility of the connection to hold onto an ARel visitor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
-
- 05 8月, 2011 1 次提交
-
-
由 Xavier Noria 提交于
Reason: The hash form is secure, and preferred over the array form if possible. This reverts commit 6dc74959.
-