class BigBrotha::TabooPost
Public Instance Methods
set_taboos(new_taboos)
click to toggle source
# File lib/bigbrotha/models/taboo_post.rb, line 17 def set_taboos(new_taboos) taboos = [] new_taboos.try(:each) do |taboo| up = TabooPostsTaboo.new(taboo_post: self, taboo: taboo) taboos << up end TabooPostsTaboo.import taboos self.reload end