Skip to content
Merged
Changes from 3 commits
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
10 changes: 9 additions & 1 deletion src/granite/base.cr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@ class Granite::Base
set_attributes(args.to_h)
end

def initialize(args : Hash(Symbol | String, String | JSON::Any))
def initialize(args : Hash(Symbol | String, String?))
set_attributes(args)
end

def initialize(args : Hash(Symbol | String, Granite::Fields::Type))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

set_attributes(args)
end

def initialize(args : Hash(Symbol | String, JSON::Any))
set_attributes(args)
end

Expand Down