Skip to content

Commit

Permalink
#8 add collection parser for all AR versions >=4
Browse files Browse the repository at this point in the history
  • Loading branch information
schorsch committed Aug 30, 2018
1 parent a7e1fc3 commit 65e3ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sk_sdk/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def self.site_api_url(site)

# Unfortunately only using AR v4+ we can create additional accessors
# to get info on collection info and links
if [4,5].include?(ActiveResource::VERSION::MAJOR)
if ActiveResource::VERSION::MAJOR >= 4
class SkCollection < ActiveResource::Collection
attr_accessor :current_page, :per_page, :total_entries, :total_pages

Expand Down

0 comments on commit 65e3ad1

Please sign in to comment.