app/models/relationship.rb
Use filter_map
instead. Open
Open
relationships.collect(&:resource).compact
- Create a ticketCreate a ticket
- Exclude checks
Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant. Open
Open
name = obj.send([:name, :description, :object_id].detect { |m| obj.respond_to?(m) })
- Create a ticketCreate a ticket
- Exclude checks
Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant. Open
Open
name = obj.send([:name, :description, :object_id].detect { |m| obj.respond_to?(m) })
- Create a ticketCreate a ticket
- Exclude checks