Skip to content

Rails Console and Account table #80

Discussion options

You must be logged in to vote

Just want to add a small correction for future users here:

methods.grep(/_table$/) do |table_method|
     public_send(table_method) { super().to_s.sub("account", "user").to_sym }
end

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by donnovan-lyons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants