Organisations can also be searched using near/distance filters

rails5
echarp 6 years ago
parent 2010f200f3
commit d25e133b13
  1. 1
      app/controllers/orgas_controller.rb

@ -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

Loading…
Cancel
Save