- 30 10月, 2012 6 次提交
-
-
由 kennyj 提交于
-
由 Alexey Gaziev 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Rafael Mendonça França 提交于
This can occur if the user is using :integer columns to store boolean values. Now we are handling the boolean values but it still raises if the value can't type cast to integer and is not a boolean. See #7509. Fixes #8067. Conflicts: activerecord/CHANGELOG.md
-
由 Carlos Antonio da Silva 提交于
Add test for code change introduced in this commit f20032fa
-
由 Cédric FABIANSKI 提交于
-
- 29 10月, 2012 28 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Provide a call stack for deprecation warnings where needed.
-
由 Nikita Afanasenko 提交于
It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
-
由 Carlos Antonio da Silva 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Should not eager_load app/assets Conflicts: railties/CHANGELOG.md
-
由 Xavier Noria 提交于
Atomic.rb assumes it may chown/chmod a file but doesn't handle the EPERM error.
-
由 Daniele Sluijters 提交于
Previously this code just assumed it is capable of changing the file ownership, both user and group. This will fail in a lot of scenario's unless: * The process is run as a superuser (root); * The owning user and group are already set to the user and group we're trying to chown to; * The user chown'ing only changes the group to another group it is a member of. If either of those conditions are not met the filesystem will simply deny the operation throwing an error. It is also not always possible to do a chmod, there might be a SELinux policy or another limitation preventing the user to change the file mode. To this end the chmod call has also been added to the rescue block. I've also added a little comment above the chmod command that doing a chmod on a file which has an ACL set will cause the ACL to be recalculated / modified.
-
由 Rafael Mendonça França 提交于
Checking for the constant doesn't work
-
由 Rafael Mendonça França 提交于
SQLite3Adapter#type_cast should not mutate arguments
-
由 Stefan Rusterholz 提交于
-
由 Rafael Mendonça França 提交于
Added ActiveRecord::Relation#none! method
-
由 Juanjo Bazán 提交于
-
由 Juanjo Bazán 提交于
-
由 Carlos Antonio da Silva 提交于
Unbreak update_column/update_columns for the primary key attribute.
-
由 Henrik N 提交于
Didn't work before because it updated the model-in-memory first, so the DB query couldn't find the record.
-
由 Rafael Mendonça França 提交于
Replace flow-control exception with explicit test.
-
由 Rafael Mendonça França 提交于
Do not render views when mail() isn't called. (NullMail refactoring)
-
由 Carlos Antonio da Silva 提交于
Removing JSON for other ruby
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
create_table raises an ArgumentError when the primary key is redefined.
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Rafael Mendonça França 提交于
AR::AttributeMethods#[] raises AM::AttributeMissingError for missing attributes
-
由 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.
-
由 Rafael Mendonça França 提交于
Don't log on pending migration check
-
由 schneems 提交于
Conversation from: #6665 cc/ @rafaelfranca
-
- 28 10月, 2012 6 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
fix typo in button_to helper example [ci skip]
-
由 Michael Bashkirov 提交于
-
由 Patrick Mahoney 提交于
It was noticed while profiling 'assets:precompile' in JRuby that exception creation was consuming a large portion of time, and some of that was due to File.atomic_write. Testing first with File.exists? eliminates the need for an exception which should be a perfomrance improvement on both JRuby and MRI. In this case, the stat() isn't even extra overhead, since it is always called.
-
由 Rafael Mendonça França 提交于
-