app/models/plan.rb
# The owner and co-owners (aka :creator and :administrator) of the project
#
# Returns ActiveRecord::Relation
The owner and co-owners (aka :creator and :administrator) of the project
Returns ActiveRecord::Relation
The owner and co - owners ( aka : creator and : administrator ) of the project Returns ActiveRecord :: Relation
def owner_and_coowners
    roles.select { |r| r.active && r.administrator }.map(&:user).uniq
  end
def owner_and_coowners roles . select { | r | r . active && r . administrator } . map ( & :user ) . uniq end
The owner and co-owners (aka :creator and :administrator) of the project
Returns ActiveRecord::Relation
The owner and co - owners ( aka : creator and : administrator ) of the project Returns ActiveRecord :: Relation
# We only need to search for :administrator in the bitflag # since :creator includes :administrator rights