app/models/response_set.rb in surveyor-0.12.1 vs app/models/response_set.rb in surveyor-0.13.0

- old
+ new

@@ -1,10 +1,7 @@ class ResponseSet < ActiveRecord::Base - # Extending surveyor - include "#{self.name}Extensions".constantize if Surveyor::Config['extend'].include?(self.name.underscore) - # Associations belongs_to :survey belongs_to :user has_many :responses, :dependent => :destroy @@ -26,15 +23,15 @@ default_args end def default_args self.started_at ||= Time.now - self.access_code = Surveyor.make_tiny_code + self.access_code = Surveyor::Common.make_tiny_code end def access_code=(val) while ResponseSet.find_by_access_code(val) - val = Surveyor.make_tiny_code + val = Surveyor::Common.make_tiny_code end super end def to_csv \ No newline at end of file