Skip to content

Commit

Permalink
Fix bookmarks for rails 4.2.1. Fixes #1153
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 19, 2015
1 parent 56aceff commit 1ee725b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion lib/blacklight/document.rb
Expand Up @@ -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.
Expand Down Expand Up @@ -153,4 +157,4 @@ def base_class
self
end
end
end
end

0 comments on commit 1ee725b

Please sign in to comment.