From 0c649c66979a1a719836a38bdbbe838288d50d5a Mon Sep 17 00:00:00 2001 From: Lee Dykes Date: Mon, 31 Aug 2015 14:19:15 -0500 Subject: [PATCH] Extending active record rather than sending --- lib/surveyable/acts_as_survey.rb | 2 +- lib/surveyable/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/surveyable/acts_as_survey.rb b/lib/surveyable/acts_as_survey.rb index fbcba1b..04e4fda 100644 --- a/lib/surveyable/acts_as_survey.rb +++ b/lib/surveyable/acts_as_survey.rb @@ -14,4 +14,4 @@ module Surveyable end end -ActiveRecord::Base.send :include, Surveyable::ActsAsSurvey \ No newline at end of file +ActiveRecord::Base.extend(Surveyable::ActsAsSurvey) \ No newline at end of file diff --git a/lib/surveyable/version.rb b/lib/surveyable/version.rb index 8511baa..5b2cd39 100644 --- a/lib/surveyable/version.rb +++ b/lib/surveyable/version.rb @@ -1,3 +1,3 @@ module Surveyable - VERSION = "0.1.3" + VERSION = "0.1.4" end -- libgit2 0.21.0