- 07 12月, 2011 2 次提交
- 06 12月, 2011 19 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
Issue #3427 - asset_path_conflicts
-
由 José Valim 提交于
-
由 José Valim 提交于
Allow string as url for expire_action
-
由 Thomas von Deyen 提交于
-
由 José Valim 提交于
ActiveModel::Name#i18n_key: Fix doc and add tests
-
由 José Valim 提交于
Don't tokenize string when counting characters
-
由 Marc-Andre Lafortune 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Adrian Pike 提交于
Let's do the same trick for asset_path that we do for [image,javascript,stylesheet]_path to avoid namespace conflicts on named routes. Closes #3427
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
Increase performance for table_exists?
-
由 José Valim 提交于
Remove .rxml, .rjs and .rhtml from source annotation regexp.
-
由 Uģis Ozols 提交于
-
由 Jade Rubick 提交于
At New Relic, we have hundreds of thousands of tables, and our migrations took 30 minutes without this similar patch. This cuts it down to a more reasonable amount of time. The rescue false part is ugly, but necessary as far as I can tell. I don't know of a cross-database statement you can make that will work without trapping errors.
-
由 José Valim 提交于
Named Routes shouldn't override existing ones (currently route recognition goes with the earliest match, named routes use the latest match)
-
由 José Valim 提交于
use classify in ParamsWrapper to derive model name from controller name
-
由 lest 提交于
-
- 05 12月, 2011 19 次提交
-
-
由 Andy Jeffries 提交于
Named Routes shouldn't override existing ones (currently route recognition goes with the earliest match, named routes use the latest match)
-
由 José Valim 提交于
-
由 José Valim 提交于
Fix human_attribute_name to handle names with dots
-
由 Tsutomu Kuroda 提交于
Nested I18n namespace lookup under activerecord.models is deprecated now (c19bd4f8). But when a model uses accepts_nested_attributes_for, its Errors object can have an attribute name with "addresses.street" style. In this case, the dots should be substituted with slashes so that we can provide the translation under the "activemodel.attributes.person.addresses/street" key.
-
由 Xavier Noria 提交于
redirect_to url with network path reference: Do not escape forward slashes within a curly regexp
-
由 Overbryd 提交于
Minor enhancement by not unnecessarely escaping forward slashing within a curly regexp and by mentoining the protocol relative scheme in the internal comment
-
由 José Valim 提交于
Fix for redirect_to to respect urls with a network path reference like "//asset.host.com/resources/1235"
-
由 Overbryd 提交于
Fix for redirect_to to respect urls with a network path reference like "//asset.host.com/resources/1235" see issue #3856
-
由 Ian Young 提交于
-
由 José Valim 提交于
Do not validate associated records marked for destruction
-
由 Olek Janiszewski 提交于
The main reason for this change is to fix a bug where `validates_associated` would prevent `accepts_nested_attributes_for` with `allow_destroy: true` from destroying invalid associated records.
-
由 Jon Leighton 提交于
Fix sequence name with abstract classes.
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
This commit vastly reduces the impact of auto explain logging when enabled, while keeping a negligible cost when disabled. The first implementation was based on the idea of subscribing to "sql.active_record" when needed, and unsubscribing once done. This is the idea behind AR::Relation#explain. Subscribe, collect, unsubscribe. But with the current implementation of notifications unsubscribing is costly, because it wipes an internal cache and that puts a penalty on the next event. So we are switching to an approach where a long-running subscriber is listening. Instead of collecting the queries with a closure in a dedicated subscriber, now we setup a thread local. If the feature is disabled by setting the threshold to nil, the subscriber will call a method that does nothing. That's totally cheap.
-
由 José Valim 提交于
form_for with :as option uses "action_as" as css class and id
-
由 Aaron Patterson 提交于
Add tests for the return value of require
-
由 Vasiliy Ermolovich 提交于
-