Module: Backend::AffairsHelper

Defined in:
app/helpers/backend/affairs_helper.rb

Instance Method Summary collapse

Instance Method Details

#affair_deals(affair) ⇒ Object


6
7
8
# File 'app/helpers/backend/affairs_helper.rb', line 6

def affair_deals(affair)
  render partial: 'backend/affairs/show', object: affair, locals: { affair: affair, current_deal: nil }
end

#affair_of(deal) ⇒ Object


2
3
4
# File 'app/helpers/backend/affairs_helper.rb', line 2

def affair_of(deal)
  render partial: 'backend/affairs/show', object: deal.affair, locals: { affair: deal.affair, current_deal: deal }
end