Skip to content

Commit

Permalink
Fix read_attribute, see #396
Browse files Browse the repository at this point in the history
  • Loading branch information
msa7 committed May 4, 2020
1 parent 0db7835 commit e7c6fcc
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 e7c6fcc

Please sign in to comment.