Module: RailsExecution::BaseHelper

Includes:
ActionView::Helpers::AssetUrlHelper
Included in:
BaseController
Defined in:
app/helpers/rails_execution/base_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_ownerObject



5
6
7
8
9
10
11
# File 'app/helpers/rails_execution/base_helper.rb', line 5

def current_owner
  return nil if in_solo_mode?
  return @current_owner if defined?(@current_owner)
  return nil if ::RailsExecution.configuration.owner_method.blank?

  @current_owner = self.send(::RailsExecution.configuration.owner_method)
end