-
-
Save jipiboily/776d907fc932640ac59a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Monologue::User.class_eval | |
self.table_name = 'your_user_table_name_here' | |
end |
@asharma-ror just put it in an initializer.
doesn't work as it , missing the 'do', should be written :
Monologue::User.class_eval do
self.table_name = 'your_user_table_name_here'
end
Monologue::User.class_eval do
self.table_name = 'your_user_table_name_here'
end
I'm new to monologue, and trying to figure out if this goes before you do the monologue migrations, or if it can be done afterwards?
Hi,
If I am not wrong we should add the above file at "app/models/monologue/" as user_decorator.rb .
Correct me if i am wrong ....
Thank u :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where to write this code ?