Module: Formol::Controllers::Nested::HasParentTopic

Included in:
PollVotesController, PostsController, SubscriptionsController
Defined in:
lib/formol/controllers/nested/has_parent_topic.rb

Instance Method Summary collapse

Instance Method Details

#topicObject



5
6
7
# File 'lib/formol/controllers/nested/has_parent_topic.rb', line 5

def topic
  @topic ||= Formol::Topic.ready_for_breadcrumb.find(params[:topic_id])
end