Commit b3bd8c92 authored by Daniel Mack's avatar Daniel Mack Committed by Mario Manno

conferences, events, people, Gemfile: kill acts_as_indexed

Now that ransack is used for all searches, acts_as_indexed can be removed
entirely. This also closes issue #107.
parent 550f0a75
......@@ -7,7 +7,6 @@ gem 'pg', group: :postgresql
gem 'sqlite3', group: :sqlite3
gem 'acts_as_commentable'
gem 'acts_as_indexed'
gem 'barista'
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'cancancan'
......
......@@ -54,7 +54,6 @@ GEM
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
acts_as_commentable (4.0.1)
acts_as_indexed (0.8.3)
ansi (1.4.3)
arel (3.0.3)
barista (1.3.0)
......@@ -228,7 +227,6 @@ PLATFORMS
DEPENDENCIES
acts_as_commentable
acts_as_indexed
barista
bcrypt-ruby (~> 3.0.0)
bullet
......
......@@ -13,8 +13,6 @@ class Conference < ActiveRecord::Base
has_one :call_for_papers, dependent: :destroy
has_one :ticket_server, dependent: :destroy
acts_as_indexed fields: [:title, :acronym ]
accepts_nested_attributes_for :rooms, reject_if: proc {|r| r["name"].blank?}, allow_destroy: true
accepts_nested_attributes_for :days, reject_if: :all_blank, allow_destroy: true
accepts_nested_attributes_for :tracks, reject_if: :all_blank, allow_destroy: true
......
......@@ -48,9 +48,7 @@ class Event < ActiveRecord::Base
scope :without_speaker, where("speaker_count = 0")
scope :with_speaker, where("speaker_count > 0")
acts_as_indexed fields: [:title, :subtitle, :event_type, :abstract, :description, :track_name]
has_paper_trail
has_paper_trail
state_machine do
state :new
......
......@@ -21,8 +21,6 @@ class Person < ActiveRecord::Base
before_save :nilify_empty
acts_as_indexed fields: [:first_name, :last_name, :public_name, :email, :abstract, :description, :user_email]
has_paper_trail
has_attached_file :avatar,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment