When trying to fix a bug in Rails and writing tests, i've got

DEPRECATION WARNING: Calling set_table_name is deprecated. Please use
`self.table_name = 'the_name'` instead

from a test case.

Is set_table_name really deprecated in rails 3? Googling didn't help.
Thanks.

Alexey.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Peter De Berdt at Dec 4, 2011 at 5:10 pm

    On 04 Dec 2011, at 16:56, Alexey Muranov wrote:

    When trying to fix a bug in Rails and writing tests, i've got

    DEPRECATION WARNING: Calling set_table_name is deprecated. Please use
    `self.table_name = 'the_name'` instead

    from a test case.

    Is set_table_name really deprecated in rails 3? Googling didn't help.
    It probably will be dropped in the next version, that's usually what
    these messages warn you about. It provides you with the new syntax to
    use, so you're better off using self.table_name. If it's in a plugin,
    you can always branch it on github, fix it and submit a pull request.


    Best regards

    Peter De Berdt

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 4, '11 at 3:56p
activeDec 4, '11 at 5:10p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Alexey Muranov: 1 post Peter De Berdt: 1 post

People

Translate

site design / logo © 2021 Grokbase