lib/searchjoy/search.rb in searchjoy-0.0.5 vs lib/searchjoy/search.rb in searchjoy-0.0.6

- old
+ new

@@ -1,8 +1,13 @@ module Searchjoy class Search < ActiveRecord::Base belongs_to :convertable, polymorphic: true + # the devise way + if Rails::VERSION::MAJOR == 3 and !defined?(ActionController::StrongParameters) + attr_accessible :search_type, :query, :results_count + end + before_save :set_normalized_query def convert(convertable = nil) if !converted? self.converted_at = Time.now