Organisations can also be searched using near/distance filters

This commit is contained in:
echarp 2016-10-28 11:48:44 +02:00
parent 2010f200f3
commit d25e133b13
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Groups life cycle
class OrgasController < ApplicationController
has_scope :region
has_scope :near, type: :hash, using: [:location, :distance]
before_action :set_orga, except: [:index, :new, :create]
before_action :set_mailer_host