mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 19:58:08 +01:00
upgrade to rails 2.3.12 and fix deprecation warning and fix some version numbers of gems used for testing
This commit is contained in:
parent
a3c5920a2b
commit
ceda51b5bf
34 changed files with 2451 additions and 11266 deletions
|
|
@ -340,7 +340,7 @@ Be aware, however, that <tt>NULL != 'Spot'</tt> returns <tt>false</tt> due to SQ
|
|||
options[:parent_extend] = spiked_create_extension_module(association_id, Array(options[:parent_extend]), "Parent")
|
||||
|
||||
# create the reflection object
|
||||
returning(create_reflection(:has_many_polymorphs, association_id, options, self)) do |reflection|
|
||||
create_reflection(:has_many_polymorphs, association_id, options, self).tap do |reflection|
|
||||
# set up the other related associations
|
||||
create_join_association(association_id, reflection)
|
||||
create_has_many_through_associations_for_parent_to_children(association_id, reflection)
|
||||
|
|
@ -355,7 +355,7 @@ Be aware, however, that <tt>NULL != 'Spot'</tt> returns <tt>false</tt> due to SQ
|
|||
|
||||
def build_table_aliases(from)
|
||||
# for the targets
|
||||
returning({}) do |aliases|
|
||||
{}.tap do |aliases|
|
||||
from.map(&:to_s).sort.map(&:to_sym).each_with_index do |plural, t_index|
|
||||
begin
|
||||
table = plural._as_class.table_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue