Skip to content

Commit

Permalink
docs: update Transform examples
Browse files Browse the repository at this point in the history
Signed-off-by: SaxtonDrey <[email protected]>
  • Loading branch information
SaxtonDrey committed Jun 18, 2024
1 parent 2a6fb3d commit 0068129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,10 @@ end
```ruby
class User
def custom_columns
self.dynamic_fields #which is an array of some columns
# which is an array of some columns
end

def custom_fields
def dynamic_fields
custom_columns.each_with_object({}){|col,result| result[col] = self.send(col)}
end
end
Expand Down

0 comments on commit 0068129

Please sign in to comment.