- 20 7月, 2012 3 次提交
-
-
由 Andrew White 提交于
Since #5581 added support for resources with custom params we should not assume that it is :id when using shallow resource routing.
-
由 Andrew White 提交于
The Mapper looks for a :id constraint in the scope to see whether it should apply a constraint for nested resources. Since #5581 added support for resource params other than :id, we need to check for a constraint on the parent resource's param name and not assume it's :id.
-
由 Aaron Patterson 提交于
This allows us to do: In your configuration: Rails.queue[:image_queue] = SomeQueue.new Rails.queue[:mail_queue] = SomeQueue.new In your app code: Rails.queue[:mail_queue].push MailJob.new Both jobs pushed to the same default queue Rails.queue.push DefaultJob.new Rails.queue[:default].push DefaultJob.new
-
- 19 7月, 2012 7 次提交
-
-
由 Rafael Mendonça França 提交于
Log query plan when we use count_by_sql method.
-
由 Carlos Antonio da Silva 提交于
Lets stick with a symbol in join table name, it was removed in 993e1643 and broke the build.
-
由 José Valim 提交于
-
由 José Valim 提交于
Add fkey attributes to `join_table` migration generator
-
由 Aaron Patterson 提交于
This reverts commit c08f30ff, reversing changes made to e243a8a3.
-
由 Aleksey Magusev 提交于
-
由 Rafael Mendonça França 提交于
revert Default timestamps to non-null
-
- 18 7月, 2012 19 次提交
-
-
由 Dave Kroondyk 提交于
Commit 3dbedd28 added NOT NULL constraints to timestamps. Commit fcef7289 started to revert this, but was incomplete. With this commit, 3dbedd28 should be fully reverted and timestamps will no longer default to NOT NULL.
-
由 Rafael Mendonça França 提交于
Remove `:confirm` in favor of `:data => { :confirm => 'Text' }` option
-
由 Carlos Galdino 提交于
This applies to the following helpers: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag`
-
由 José Valim 提交于
Don't use default separator in tagged logger
-
由 José Valim 提交于
-
由 Piotr Niełacny 提交于
When the default separator is set logger will create incorrect output
-
由 José Valim 提交于
add lazy look up in abstract controller's translate method
-
由 Sergey Pchelincev 提交于
-
由 José Valim 提交于
Add indexes to create_join_table method
-
由 José Valim 提交于
Add additional formats to lookup context
-
由 Dmitry Vorotilin 提交于
-
由 Jon Leighton 提交于
AR::Integration must be included after AM::Conversion
-
由 John Firebaugh 提交于
Integration's definition of #to_param must override Conversion's. Otherwise, there is a regression from 3.1 in the behavior of a non-persisted AR::Base instance which nevertheless has an id.
-
由 Aleksey Magusev 提交于
For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end
-
由 Andrew White 提交于
Optional segments with a root scope need to have the leading slash outside of the parentheses, otherwise the generated url will be empty. However if the route has non-optional elements then the leading slash needs to remain inside the parentheses otherwise the generated url will have two leading slashes, e.g: Blog::Application.routes.draw do get '/(:category)', :to => 'posts#index', :as => :root get '/(:category)/author/:name', :to => 'posts#author', :as => :author end $ rake routes root GET /(:category)(.:format) posts#index author GET (/:category)/author/:name(.:format) posts#author This change adds support for optional segments that contain a slash, allowing support for urls like /page/2 for the root path, e.g: Blog::Application.routes.draw do get '/(page/:page)', :to => 'posts#index', :as => :root end $ rake routes root GET /(page/:page)(.:format) posts#index Fixes #7073
-
由 kennyj 提交于
-
由 Aaron Patterson 提交于
Fix class_eval without __FILE__ and __LINE__.
-
由 Jon Leighton 提交于
Use database value for uniqueness validation scope
-
由 kennyj 提交于
-
- 17 7月, 2012 2 次提交
-
-
由 beerlington 提交于
Fixes issue with overrding ActiveRecord reader methods with a composed object and using that attribute as the scope of a validates_uniqueness_of validation.
-
由 Piotr Sarnacki 提交于
A more informative comment for config.asset.debug
-
- 16 7月, 2012 3 次提交
-
-
由 Jared Beck 提交于
-
由 Rafael Mendonça França 提交于
Fix activerecord model to_ary method comment 'see also' link
-
由 Kang Wen 提交于
-
- 15 7月, 2012 5 次提交
-
-
由 Vijay Dev 提交于
-
由 Xavier Noria 提交于
This file uses Time.zone, which is defined in active_support/core_ext/time/zones.rb.
-
由 kennyj 提交于
-
由 Rafael Mendonça França 提交于
Fix SqlBypass.data_column problem.
-
由 kennyj 提交于
-
- 14 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
Avoid to call send(store_attribute) twice.
-