Skip to content

Instantly share code, notes, and snippets.

@jipiboily
Created June 19, 2013 12:03
Show Gist options
  • Select an option

  • Save jipiboily/776d907fc932640ac59a to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Where to write this code ?

@joshmn

joshmn commented Jul 19, 2014

Copy link
Copy Markdown

@asharma-ror just put it in an initializer.

ghost commented Sep 18, 2014

Copy link
Copy Markdown

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

keating commented Nov 4, 2014

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

@KidA001

KidA001 commented Mar 2, 2015

Copy link
Copy Markdown

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
Copy Markdown

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