Ruby on Rails Tuesday, April 26, 2016

David Williams wrote in post #1183093:

These lines of code are working

orphans = SimpleHashtag::Hashtag.all.select {|h| h.hashtaggables.size ==
0}
orphans.map(&:destroy)

But, in order for the perform method to fire off. You need an argument
to go along with it.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/69c939698f54fc1b8f6ba00e10b4f479%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment