Skip to content

Commit

Permalink
Updated crystal version dependency. Fixed Ameba lints
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-alexandrov committed Jul 7, 2021
1 parent 9409301 commit 703fd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: shrine
version: 0.6.2
version: 0.6.3
description: |
File Attachment toolkit for Crystal applications
authors:
- Igor Alexandrov <[email protected]>
- Mick Wout <[email protected]>

crystal: 1.0.0
crystal: ">= 1.0.0, < 2.0.0"

license: MIT

Expand Down
2 changes: 1 addition & 1 deletion src/shrine/attacher.cr
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class Shrine
end

def load_data(**data)
@file = uploaded_file(data.to_h.transform_keys { |key| key.to_s })
@file = uploaded_file(data.to_h.transform_keys(&.to_s))
end

def load_data(data : Nil)
Expand Down

0 comments on commit 703fd95

Please sign in to comment.