Skip to content

Instantly share code, notes, and snippets.

@jipiboily
Created June 19, 2013 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jipiboily/776d907fc932640ac59a to your computer and use it in GitHub Desktop.
Save jipiboily/776d907fc932640ac59a to your computer and use it in GitHub Desktop.
Monologue::User.class_eval
self.table_name = 'your_user_table_name_here'
end
@asharma-ror
Copy link

Where to write this code ?

@joshmn
Copy link

joshmn commented Jul 19, 2014

@asharma-ror just put it in an initializer.

Copy link

ghost commented Sep 18, 2014

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

@keating
Copy link

keating commented Nov 4, 2014

Monologue::User.class_eval do
  self.table_name = 'your_user_table_name_here'
end

@KidA001
Copy link

KidA001 commented Mar 2, 2015

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?

@kurapatijayaram
Copy link

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