Organisations can also be searched using near/distance filters
This commit is contained in:
parent
2010f200f3
commit
d25e133b13
@ -1,6 +1,7 @@
|
|||||||
# Groups life cycle
|
# Groups life cycle
|
||||||
class OrgasController < ApplicationController
|
class OrgasController < ApplicationController
|
||||||
has_scope :region
|
has_scope :region
|
||||||
|
has_scope :near, type: :hash, using: [:location, :distance]
|
||||||
|
|
||||||
before_action :set_orga, except: [:index, :new, :create]
|
before_action :set_orga, except: [:index, :new, :create]
|
||||||
before_action :set_mailer_host
|
before_action :set_mailer_host
|
||||||
|
Loading…
Reference in New Issue
Block a user