Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

make stuff work with Rails 3.2.x #91

Open
wants to merge 2 commits into from

1 participant

@ralph

Reflection#primary_key_name was removed in Rails 3.2.0

ralph added some commits
@ralph ralph make stuff work with Rails 3.2.x
Reflection#primary_key_name was removed in Rails 3.2.0
014491c
@ralph ralph bump version 108b816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 30, 2012
  1. @ralph

    make stuff work with Rails 3.2.x

    ralph authored
    Reflection#primary_key_name was removed in Rails 3.2.0
  2. @ralph

    bump version

    ralph authored
This page is out of date. Refresh to see the latest.
View
2  app/helpers/admin_data/application_helper.rb
@@ -306,7 +306,7 @@ def get_value_for_column(column, model, options = {})
end
def get_reflection_for_column(klass, col)
- klass.reflections.values.detect { |reflection| reflection.primary_key_name.to_sym == col.name.to_sym }
+ klass.reflections.values.detect { |reflection| reflection.foreign_key.to_sym == col.name.to_sym }
end
def record_id(record)
View
2  lib/admin_data/version.rb
@@ -1,3 +1,3 @@
module AdminData
- VERSION = '1.2.1'
+ VERSION = '1.2.1a'
end
Something went wrong with that request. Please try again.