From 1ee725b75353eea9c72b25172fe77cdd87ea4f91 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Thu, 19 Mar 2015 15:08:37 -0500 Subject: [PATCH] Fix bookmarks for rails 4.2.1. Fixes #1153 --- .travis.yml | 2 ++ lib/blacklight/document.rb | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc382ebf4a..97e31bd8d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ matrix: env: "RAILS_VERSION=4.1.9" - rvm: 2.1.5 env: "RAILS_VERSION=4.2.0" + - rvm: 2.1.5 + env: "RAILS_VERSION=4.2.1" - rvm: jruby env: "RAILS_VERSION=4.2.0 JRUBY_OPTS=\"-J-Xms512m -J-Xmx1024m\"" - rvm: 1.9.3 diff --git a/lib/blacklight/document.rb b/lib/blacklight/document.rb index 347bb294c7..e0975a13d6 100644 --- a/lib/blacklight/document.rb +++ b/lib/blacklight/document.rb @@ -59,6 +59,10 @@ def [] *args @_source.send :[], *args end + def _read_attribute(attr) + self[attr] + end + # Helper method to check if value/multi-values exist for a given key. # The value can be a string, or a RegExp # Multiple "values" can be given; only one needs to match. @@ -153,4 +157,4 @@ def base_class self end end -end \ No newline at end of file +end