mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +01:00
fix merge
This commit is contained in:
parent
6db26e7a19
commit
4eea18a479
@ -17,16 +17,12 @@ class API::MembersController < API::ApiController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def last_subscribed
|
def last_subscribed
|
||||||
<<<<<<< HEAD
|
@query = User.active.with_role(:member).includes(profile: [:user_avatar]).where('is_allow_contact = true AND confirmed_at IS NOT NULL').order('created_at desc').limit(params[:last])
|
||||||
@members = User.active.with_role(:member).includes(profile: [:user_avatar]).where('is_allow_contact = true AND confirmed_at IS NOT NULL').order('created_at desc').limit(params[:last])
|
|
||||||
=======
|
|
||||||
@query = User.active.with_role(:member).includes(:profile).where('is_allow_contact = true AND confirmed_at IS NOT NULL').order('created_at desc').limit(params[:last])
|
|
||||||
|
|
||||||
# remove unmerged profiles from list
|
# remove unmerged profiles from list
|
||||||
@members = @query.to_a
|
@members = @query.to_a
|
||||||
@members.delete_if { |u| u.need_completion? }
|
@members.delete_if { |u| u.need_completion? }
|
||||||
|
|
||||||
>>>>>>> 9ab28c1df60ab3b3a06b76025dba26d6151aa0ba
|
|
||||||
@requested_attributes = ['profile']
|
@requested_attributes = ['profile']
|
||||||
render :index
|
render :index
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user