Removed set_table_name and changed it to self.table_name assignment to b...

Compatibility for Rails 4