diff --git a/CHANGELOG.md b/CHANGELOG.md index ed6e5378..35e26f33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 3.3.0 ## + * Fix caching issue with settings pagination *[@asko-ohmann]* diff --git a/Gemfile.lock b/Gemfile.lock index 0d5d883f..8ad114e6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - sail (3.2.4) + sail (3.3.0) fugit jquery-rails rails diff --git a/app/models/sail/setting.rb b/app/models/sail/setting.rb index 08495476..7ee3f987 100644 --- a/app/models/sail/setting.rb +++ b/app/models/sail/setting.rb @@ -32,7 +32,7 @@ class UnexpectedCastType < StandardError; end after_initialize :instantiate_caster - scope :paginated, lambda { |page, per_page| offset(page.to_i * per_page).limit(per_page) } + scope :paginated, ->(page, per_page) { offset(page.to_i * per_page).limit(per_page) } scope :by_query, lambda { |query| if cast_types.key?(query) || query == Sail::ConstantCollection::STALE diff --git a/lib/sail/version.rb b/lib/sail/version.rb index aa5008b8..cd4212e7 100644 --- a/lib/sail/version.rb +++ b/lib/sail/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Sail - VERSION = "3.2.4" + VERSION = "3.3.0" end