aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlatka Pavisic2017-01-04 16:36:33 +0100
committerVlatka Pavisic2017-01-04 16:36:33 +0100
commit89ab282c5737f7c0d723917ec989f028e196e9c5 (patch)
tree6b5d612803da9e5ec4e90ca64b108d18e7a8ea98
parentaf34cb854255f2893a27e28b11a2601d6af8a725 (diff)
downloadchouette-core-calendars.tar.bz2
Refs #2263 : Rm unused scopescalendars
-rw-r--r--app/models/calendar.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/calendar.rb b/app/models/calendar.rb
index e1181fe5f..54237e9cc 100644
--- a/app/models/calendar.rb
+++ b/app/models/calendar.rb
@@ -7,8 +7,6 @@ class Calendar < ActiveRecord::Base
after_initialize :init_dates_and_date_ranges
scope :contains_date, ->(date) { where('date ? = any (dates) OR date ? <@ any (date_ranges)', date, date) }
- scope :shared, -> { where(shared: true) }
- scope :by_organisation, ->(org_id) { where(organisation_id: org_id) }
def init_dates_and_date_ranges
self.dates ||= []