app/models/user/posting.rb
def post(forum, attributes)
    Topic.new(attributes) do |topic|
      topic.forum = forum
      topic.user  = self
      revise_topic topic, attributes, moderator_of?(forum)
    end
  end
# Creates new topic and post.
# Only..
#  - sets sticky/locked bits if you're a moderator or admin 
#  - changes forum_id if you're an admin
#
Creates new topic and post.
Only
sets sticky/locked bits if you're a moderator or admin
changes forum_id if you're an admin
Creates new topic and post . Only sets sticky / locked bits if you ' re a moderator or admin changes forum_id if you ' re an admin
def post(forum, attributes)
    Topic.new(attributes) do |topic|
      topic.forum = forum
      topic.user  = self
      revise_topic topic, attributes, moderator_of?(forum)
    end
  end
def post ( forum , attributes ) Topic . new ( attributes ) do | topic | topic . forum = forum topic . user = self revise_topic topic , attributes , moderator_of? ( forum ) end end
Creates new topic and post.
Creates new topic and post .
forum
attributes