Skip to content

Commit

Permalink
Merge pull request remarkable-rb#25 from ragaskar/master
Browse files Browse the repository at this point in the history
Expand Rails 3.1 support
  • Loading branch information
hosh committed Jul 7, 2011
2 parents b182282 + 231b006 commit fddcccc
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -94,7 +94,7 @@ def reflection_table_name
end

def reflection_foreign_key
reflection.primary_key_name.to_s
(reflection.respond_to?(:foreign_key) ? reflection.foreign_key : reflection.primary_key_name).to_s
end

def table_has_column?(klass, table_name, column)
Expand Down Expand Up @@ -214,7 +214,7 @@ def have_and_belong_to_many(*associations, &block)
end

# Ensures that the has_many relationship exists. Will also test that the
# associated table has the required columns. It works by default with
# associated table has the required columns. It works by default with
# polymorphic association (:as does not have to be supplied).
#
# == Options
Expand Down Expand Up @@ -250,7 +250,7 @@ def have_many(*associations, &block)
end

# Ensures that the has_many relationship exists. Will also test that the
# associated table has the required columns. It works by default with
# associated table has the required columns. It works by default with
# polymorphic association (:as does not have to be supplied).
#
# == Options
Expand Down

0 comments on commit fddcccc

Please sign in to comment.