Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ PATH
prop_initializer (>= 0.2.0)
turbo-rails (>= 2.0.0)
turbo_power (>= 0.6.0)
universalid
view_component (>= 3.7.0)
zeitwerk (>= 2.6.12)

Expand Down Expand Up @@ -162,7 +161,6 @@ GEM
bindex (0.8.1)
bootsnap (1.18.4)
msgpack (~> 1.2)
brotli (0.6.0)
builder (3.3.0)
bump (0.10.0)
bundler-integrity (1.0.9)
Expand All @@ -181,9 +179,6 @@ GEM
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.3.5)
config (5.5.2)
deep_merge (~> 1.2, >= 1.2.1)
ostruct
connection_pool (2.5.0)
countries (7.1.0)
unaccent (~> 0.3)
Expand All @@ -206,7 +201,6 @@ GEM
debug (1.10.0)
irb (~> 1.10)
reline (>= 0.3.8)
deep_merge (1.2.2)
derailed_benchmarks (2.1.2)
benchmark-ips (~> 2)
dead_end
Expand Down Expand Up @@ -666,12 +660,6 @@ GEM
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
universalid (0.1.7)
activesupport (>= 6.1)
brotli (>= 0.4)
config (>= 5.0)
msgpack (>= 1.7)
zeitwerk (>= 2.6)
uri (1.0.2)
useragent (0.16.11)
view_component (3.21.0)
Expand Down
4 changes: 2 additions & 2 deletions app/helpers/avo/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@

# encode params
def e(value)
URI::UID.build(value).payload
Marshal.dump(value)
end

# decode params
def d(value)
URI::UID.from_payload(value).decode
Marshal.load(value)
rescue
value
end
Expand Down
1 change: 0 additions & 1 deletion avo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ Gem::Specification.new do |spec|
spec.add_dependency "docile"
spec.add_dependency "inline_svg"
spec.add_dependency "prop_initializer", ">= 0.2.0"
spec.add_dependency "universalid"
end
Loading