index
:
rails.git
3-2-stable-for-hmno
master
Mirror of official rails repo with custom fixes.
Harald Eilertsen
about
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
actionpack
/
lib
/
action_dispatch
/
routing
/
polymorphic_routes.rb
Commit message (
Expand
)
Author
Age
Files
Lines
*
only test `persisted?` on the record once
Aaron Patterson
2014-05-12
1
-3
/
+7
*
only send options if there are any options
Aaron Patterson
2014-05-12
1
-5
/
+7
*
remove should_pop variable
Aaron Patterson
2014-05-12
1
-4
/
+1
*
only pop records when we get an array
Aaron Patterson
2014-05-12
1
-6
/
+7
*
remove unnecessary array allocations
Coraline Ada Ehmke + Aaron Patterson
2014-05-12
1
-5
/
+1
*
simplified route method name generation
Coraline Ada Ehmke + Aaron Patterson
2014-05-12
1
-27
/
+17
*
small refactoring
Coraline Ada Ehmke + Aaron Patterson
2014-05-12
1
-6
/
+2
*
pulling helpermethods up before refactoring
Coraline Ada Ehmke + Aaron Patterson
2014-05-12
1
-20
/
+46
*
push all is_a tests up, always pass options to the named route
Aaron Patterson
2014-05-12
1
-28
/
+27
*
pull nil checks up
Aaron Patterson
2014-05-12
1
-3
/
+5
*
skip another Array is_a check
Aaron Patterson
2014-05-12
1
-4
/
+6
*
only do the Array is_a check once
Aaron Patterson
2014-05-12
1
-4
/
+3
*
we always convert this variable to a list, so we can remove the unconversion
Aaron Patterson
2014-05-12
1
-1
/
+0
*
record as a hash is not possible, so rm branch
Aaron Patterson
2014-05-12
1
-2
/
+0
*
stop popping in build_named_route_call
Aaron Patterson
2014-05-12
1
-4
/
+3
*
remove extract_record since we have extracted the list
Aaron Patterson
2014-05-12
1
-12
/
+1
*
always pass a list to build_named_route_call
Aaron Patterson
2014-05-12
1
-10
/
+19
*
add a test for passing two models to the polymorphic_url method
Aaron Patterson
2014-05-12
1
-1
/
+1
*
extract route key translation to a method and reuse it
Aaron Patterson
2014-05-12
1
-17
/
+14
*
Use #include? instead of #any?, make it simpler
Akshay Vishnoi
2014-05-03
1
-1
/
+1
*
passing a nil in the polymorphic array is not supported. remove nils before y...
Aaron Patterson
2014-05-02
1
-0
/
+4
*
passing a nil should always raise an ArgumentError
Aaron Patterson
2014-05-02
1
-1
/
+0
*
only add the optiosn if they are not empty
Aaron Patterson
2014-05-01
1
-1
/
+3
*
always pass options to the _url method
Aaron Patterson
2014-05-01
1
-3
/
+1
*
never merge url options in to the first data hash
Aaron Patterson
2014-05-01
1
-1
/
+1
*
avoid calling extract_record multiple times
Aaron Patterson
2014-04-30
1
-3
/
+2
*
eliminate conditional when sending the named route method
Aaron Patterson
2014-04-30
1
-2
/
+4
*
Adding documentation to +polymorphic_url+
wangjohn
2013-06-13
1
-0
/
+13
*
Cleans and removes useless 'Examples' tag [ci skip]
Alvaro Pereyra
2012-12-01
1
-2
/
+0
*
1.9 hash syntax changes to docs
AvnerCohen
2012-10-31
1
-3
/
+3
*
Revert "polymorphic_url with an array generates a query string"
Andrew White
2012-08-04
1
-4
/
+1
*
Revert "Refactor passing url options via array for polymorphic_url"
Andrew White
2012-08-04
1
-2
/
+2
*
Refactor passing url options via array for polymorphic_url
Andrew White
2012-08-04
1
-2
/
+2
*
polymorphic_url with an array generates a query string
Romain Tribes
2012-08-04
1
-1
/
+4
*
Remove ActiveModel dependency from ActionPack
Guillermo Iguaran
2012-06-30
1
-7
/
+7
*
Merge pull request #6588 from nbibler/polymorphic_to_model
José Valim
2012-06-01
1
-1
/
+7
*
Reword polymorphic routes + mounted engine rdoc
Mark Rushakoff
2012-04-29
1
-8
/
+6
*
Improve cache on route_key lookup.
José Valim
2011-12-08
1
-4
/
+6
*
Make polymorphic_url calls go through application helpers again.
thedarkone
2011-07-25
1
-8
/
+1
*
provide a more explicit message when using url_for with nil
Damien Mathieu
2011-07-02
1
-1
/
+3
*
dry up case / when statement
Aaron Patterson
2010-12-17
1
-5
/
+3
*
Convert unless/else into if/else.
thedarkone
2010-09-27
1
-4
/
+4
*
options[:action] is very likely to be nil.
thedarkone
2010-09-27
1
-1
/
+1
*
Use new ActiveModel::Naming.route_key in polymorphic_routes
Piotr Sarnacki
2010-09-03
1
-11
/
+2
*
Add short note on using url_for instead of directly calling named route in po...
Piotr Sarnacki
2010-09-03
1
-0
/
+3
*
Add possibility to explicitly call engine's routes through polymorphic_routes...
Piotr Sarnacki
2010-09-03
1
-1
/
+20
*
Added more tests for polymorphic_url with namespaced models and implemented m...
Piotr Sarnacki
2010-09-03
1
-5
/
+10
*
Modified polymorphic_url to check for model's namespace
Piotr Sarnacki
2010-09-03
1
-0
/
+4
*
Extended url_for to handle specifying which router should be used.
Piotr Sarnacki
2010-09-03
1
-1
/
+1
*
resolves merge conflict
Xavier Noria
2010-08-31
1
-1
/
+1
|
\
[next]