Skip to content

Commit

Permalink
Fix read_attribute, see amberframework#396
Browse files Browse the repository at this point in the history
  • Loading branch information
msa7 committed May 4, 2020
1 parent 6e5679f commit 8246710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/granite/columns.cr
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module Granite::Columns
self
end

def read_attribute(attribute_name : Symbol | String) : DB::Any
def read_attribute(attribute_name : Symbol | String) : Type
{% begin %}
case attribute_name.to_s
{% for column in @type.instance_vars.select { |ivar| ivar.annotation(Granite::Column) } %}
Expand Down

0 comments on commit 8246710

Please sign in to comment.