- 19 6月, 2012 3 次提交
-
-
由 Steve Klabnik 提交于
This feature adds a lot of complication to ActiveRecord for dubious value. Let's talk about what it does currently: class Customer < ActiveRecord::Base composed_of :balance, :class_name => "Money", :mapping => %w(balance amount) end Instead, you can do something like this: def balance @balance ||= Money.new(value, currency) end def balance=(balance) self[:value] = balance.value self[:currency] = balance.currency @balance = balance end Since that's fairly easy code to write, and doesn't need anything extra from the framework, if you use composed_of today, you'll have to add accessors/mutators like that. Closes #1436 Closes #2084 Closes #3807
-
由 Carlos Antonio da Silva 提交于
Closes #6754
-
由 kennyj 提交于
-
- 18 6月, 2012 15 次提交
-
-
由 José Valim 提交于
-
由 Carlos Antonio da Silva 提交于
Closes #6697
-
由 David Paschich 提交于
Based on examples seen in the Rails test suite. [ci skip]
-
由 Rafael Mendonça França 提交于
fix invalid syntax and sqlite rake failing tests
-
由 Francesco Rodriguez 提交于
-
由 Rafael Mendonça França 提交于
add :nodoc: to AR::Tasks and update to follow the coding conventions
-
由 Francesco Rodriguez 提交于
-
由 Rafael Mendonça França 提交于
Fix build: check if sqlite3 file exists before remove
-
由 Francesco Rodriguez 提交于
-
由 Jon Leighton 提交于
Get logic out of db rake tasks, and into classes and objects
-
由 Pat Allan 提交于
-
由 Pat Allan 提交于
-
由 José Valim 提交于
bump AS deprecation_horizon to 4.1
-
由 Francesco Rodríguez 提交于
-
由 Pat Allan 提交于
Now isn't that better? And yes, I know that private has no impact on class methods - it's a visual distinction, not a technical one.
-
- 17 6月, 2012 15 次提交
-
-
由 Pat Allan 提交于
-
由 Santiago Pastorino 提交于
Bump tzinfo gem.
-
由 Santiago Pastorino 提交于
Avoid unnecessary catching of Exception instead of StandardError.
-
由 kennyj 提交于
-
由 Pat Allan 提交于
-
由 Pat Allan 提交于
-
由 Pat Allan 提交于
-
由 José Valim 提交于
Fixing load config in some tasks
-
由 Dylan Smith 提交于
-
由 Cairo Noleto 提交于
Without this, some tasks won't load configurations like custom engines.
-
由 Pat Allan 提交于
Minimal implementation that supports db:create SQLite replacement
-
由 Rafael Mendonça França 提交于
Don't read csv file during executing db:fixtures:load.
-
由 kennyj 提交于
-
由 Rafael Mendonça França 提交于
Respect absolute paths in compute_source_path.
-
由 Steve Klabnik 提交于
When using compute_source_path to determine the full path of an asset, if our source begins with '/', we don't want to include the directory. Examples are illustrative: > compute_source_path("foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/stylesheets/foo.css" > compute_source_path("/foo", "stylesheets", "css") => "/Users/steve/src/my_app/public/foo.css" Before this patch, the second example would return the same as the first. Fixes #5680.
-
- 16 6月, 2012 7 次提交
-
-
由 José Valim 提交于
Documentation: "asynchronously" is misleading here
-
由 Schnittchen 提交于
Documentation: make it clearer that subscribers are not notified asynchronously, but saved for later use.
-
由 Rafael Mendonça França 提交于
Fix doc example for dasherize
-
由 Marc-Andre Lafortune 提交于
-
由 Aaron Patterson 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-