- 30 9月, 2013 1 次提交
-
-
由 thedarkone 提交于
This was happening when a `super` call in an overwritten attribute method was triggering a method_missing fallback, because attribute methods haven't been generated yet. class Topic < ActiveRecord::Base def title # `super` would re-invoke this method if define_attribute_methods # hasn't been called yet resulting in double '!' appending super + '!' end end
-
- 16 7月, 2013 1 次提交
-
-
由 Arun Agrawal 提交于
for attributes that are columns.
-
- 09 7月, 2013 1 次提交
-
-
由 namusyaka 提交于
-
- 26 6月, 2013 1 次提交
-
-
由 wangjohn 提交于
-
- 22 5月, 2013 1 次提交
-
-
由 Takehiro Adachi 提交于
The method itself got extracted out from ActiveRecored::Base in commit ceb33f84, but the test code never did.
-
- 17 5月, 2013 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Bogdan Gusiev 提交于
begin Topic.new("hello" => "world") rescue ActiveRecord::UnknownAttributeError => e e.record # => #<Topic ... > e.attribute # => "hello" end
-
- 11 5月, 2013 1 次提交
-
-
由 Neeraj Singh 提交于
-
- 28 4月, 2013 1 次提交
-
-
由 Xavier Noria 提交于
-
- 06 4月, 2013 1 次提交
-
-
由 Anupam Choudhury 提交于
-
- 19 3月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 18 11月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 17 11月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 29 10月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
This fixes the following behaviour: class Person < ActiveRecord::Base belongs_to :company end # Before: person = Person.select('id').first person[:name] # => nil person.name # => ActiveModel::MissingAttributeError: missing_attribute: name person[:company_id] # => nil person.company # => nil # After: person = Person.select('id').first person[:name] # => ActiveModel::MissingAttributeError: missing_attribute: name person.name # => ActiveModel::MissingAttributeError: missing_attribute: name person[:company_id] # => ActiveModel::MissingAttributeError: missing_attribute: company_id person.company # => ActiveModel::MissingAttributeError: missing_attribute: company_id Fixes #5433.
-
- 12 10月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 86c3dfbd. Conflicts: activerecord/lib/active_record/attribute_methods/read.rb Reason: whilst this increased performance, it also presents a DoS risk via memory exhaustion if users were allowing user input to dictate the arguments of read/write_attribute. I will investigate alternative ways to cut down on string allocations here.
-
- 04 9月, 2012 1 次提交
-
-
由 Yves Senn 提交于
All tests with a custom inheritance_column use the `Vegtable` model. The field ruby_type on the Company models is no longer needed
-
- 31 8月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
This is a performance/GC optimisation. In theory, this could be optimised by the implementation (last time I checked, this would have no effect on JRuby). But in practise, this make attribute access faster.
-
- 26 8月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
- 18 8月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 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.
-
- 18 7月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 28 6月, 2012 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
All other multiparameter assignment tests are in the same file, so it makes sense to have all of them here.
-
由 Yasuo Honda 提交于
does not have TIME data type.
-
由 Mauricio Linhares 提交于
Fixes #6825, adds tests covering cases and error possibilities, also changes SQLite3 driver to correctly generate a time column instead of datetime
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 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.
-
- 30 4月, 2012 1 次提交
-
-
由 Mark Rushakoff 提交于
-
- 27 4月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 07 3月, 2012 1 次提交
-
-
由 Jacob Green 提交于
-
- 01 3月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 28 2月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 17 2月, 2012 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 12 2月, 2012 1 次提交
-
-
由 Vishnu Atrai 提交于
This reverts commit 7381596e.
-
- 11 2月, 2012 1 次提交
-
-
由 Karunakar (Ruby) 提交于
-
- 10 2月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-