A
Alpha Blue
So, the bulk of my issues thus far have been pretty simple and I've
isolated and ported over a very lengthy app from 1.8.6 to 1.9.1.
The biggest issues I saw were things like scopes:
Before:
named_scope
rivate_pages,
:conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL',
rder => 'pages.position',
:include => {:subpages, :subofsubs}
After:
named_scope
rivate_pages,
:conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL',
rder => 'pages.position',
:include => [:subpages, :subofsubs]
.. and also the use of string.to_a in much of my code
Before: new_array += val.strip).to_a
After: new_array += Array(val.strip)
So, where can I find a solid page or two on a complete list rundown of
all changes from 1.8.6/1.8.7 to 1.9.x? I would like to keep a reference
somewhere handy.
isolated and ported over a very lengthy app from 1.8.6 to 1.9.1.
The biggest issues I saw were things like scopes:
Before:
named_scope
:conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL',
:include => {:subpages, :subofsubs}
After:
named_scope
:conditions => 'pages.parent_id IS NULL and pages.subpage_id IS NULL',
:include => [:subpages, :subofsubs]
.. and also the use of string.to_a in much of my code
Before: new_array += val.strip).to_a
After: new_array += Array(val.strip)
So, where can I find a solid page or two on a complete list rundown of
all changes from 1.8.6/1.8.7 to 1.9.x? I would like to keep a reference
somewhere handy.