Skip to content

Commit

Permalink
Merge pull request #142 from stimulusreflex/fix-expiring-sgids
Browse files Browse the repository at this point in the history
Turn SGID expiration of to allow for eternal caching
  • Loading branch information
julianrubisch authored Apr 29, 2022
2 parents c3dbcd0 + e5487cc commit f56732b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/futurism/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def initialize(extends:, placeholder:, options:)
def dataset
data_attributes.merge({
signed_params: signed_params,
sgid: model && model.to_sgid.to_s,
sgid: model && model.to_sgid(expires_in: nil).to_s,
eager: eager.presence,
broadcast_each: broadcast_each.presence,
signed_controller: signed_controller
Expand Down

0 comments on commit f56732b

Please sign in to comment.