Commit 477399d2178193433b8a27f8a342355ac1585229
1 parent
ff913005
Exists in
master
Specifying class for questions
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/surveyable/acts_as_survey.rb
@@ -2,7 +2,7 @@ module Surveyable | @@ -2,7 +2,7 @@ module Surveyable | ||
2 | module ActsAsSurvey | 2 | module ActsAsSurvey |
3 | extend ActiveSupport::Concern | 3 | extend ActiveSupport::Concern |
4 | included do | 4 | included do |
5 | - has_many :questions, as: :survey | 5 | + has_many :questions, as: :survey, class_name: 'Surveyable::Question' |
6 | 6 | ||
7 | end | 7 | end |
8 | module ClassMethods | 8 | module ClassMethods |
lib/surveyable/version.rb