Class: Detour::DefinedGroupFlag

Inherits:
Flag
  • Object
show all
Includes:
Concerns::Keepable
Defined in:
app/models/detour/defined_group_flag.rb

Overview

A group of flaggable records of a given class may be flagged into a feature with this class.

Instance Method Summary collapse

Methods included from Concerns::Keepable

#keep_or_destroy, #to_keep

Instance Method Details

#groupObject



11
12
13
# File 'app/models/detour/defined_group_flag.rb', line 11

def group
  find_group || build_group
end

#group_typeObject



15
16
17
# File 'app/models/detour/defined_group_flag.rb', line 15

def group_type
  "defined"
end