Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Monologue::User.class_eval
self.table_name = 'your_user_table_name_here'
end
@asharma-ror

This comment has been minimized.

Copy link

@asharma-ror asharma-ror commented Jun 20, 2014

Where to write this code ?

@joshmn

This comment has been minimized.

Copy link

@joshmn joshmn commented Jul 19, 2014

@asharma-ror just put it in an initializer.

@ghost

This comment has been minimized.

Copy link

@ghost 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

This comment has been minimized.

Copy link

@keating keating commented Nov 4, 2014

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

This comment has been minimized.

Copy link

@KidA001 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

This comment has been minimized.

Copy link

@kurapatijayaram kurapatijayaram commented Jun 22, 2015

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
You can’t perform that action at this time.