- 23 7月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 03 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
particularly, `all(options)` would warn
-
- 02 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 09 11月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 28 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 14fc8b34. Reason: we need to discuss a better path from this removal. Conflicts: activerecord/lib/active_record/reflection.rb activerecord/test/cases/base_test.rb activerecord/test/models/developer.rb
-
- 19 6月, 2012 1 次提交
-
-
由 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
-
- 24 5月, 2012 1 次提交
-
- 22 5月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Only constantize class_name once.
-
- 20 5月, 2012 3 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
由 Oscar Del Ben 提交于
-
由 Oscar Del Ben 提交于
-
- 11 5月, 2012 1 次提交
-
-
由 Hrvoje Šimić 提交于
-
- 03 5月, 2012 1 次提交
-
-
由 Yves Senn 提交于
This makes it possible to filter invalid input values before they are passed into the value-object (like empty strings). This behaviour is only relevant if the :allow_nil options is set to true. Otherwise you will get the resulting NoMethodError.
-
- 02 5月, 2012 3 次提交
-
-
由 Edward Tsech 提交于
-
由 Edward Tsech 提交于
-
由 Hrvoje Šimić 提交于
-
- 25 2月, 2012 1 次提交
-
-
由 Noah Hendrix 提交于
Fixed typo in composed_of example with Money#<=>, was comparing amount itself instead of other_money.amount
-
- 23 10月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 24 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 19 1月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 08 1月, 2011 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 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>
-
- 01 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 02 8月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 31 7月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 24 6月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 16 6月, 2010 1 次提交
-
-
由 Rizwan Reza 提交于
-
- 09 5月, 2010 1 次提交
-
-
由 wycats 提交于
-
- 17 3月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
Signed-off-by: Nwycats <wycats@gmail.com>
-
- 29 5月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
Break up DependencyModule's dual function of providing a "depend_on" DSL and "included" block DSL into separate modules. But, unify both approaches under AS::Concern.
-
- 12 5月, 2009 1 次提交
-
-
由 Bryan Helmkamp 提交于
-
- 06 10月, 2008 1 次提交
-
-
由 Pratik Naik 提交于
-
- 15 9月, 2008 2 次提交
-
-
由 Daniel Schierbeck 提交于
-
由 Daniel Schierbeck 提交于
-
- 11 9月, 2008 1 次提交
-
-
由 Rob Anderton 提交于
Signed-off-by: NMichael Koziarski <michael@koziarski.com> [#892 state:committed]
-