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
# File 'app/helpers/rails_execution/base_helper.rb', line 5

def current_owner
  return @current_owner if defined?(@current_owner)
  return nil if ::RailsExecution.configuration.owner_method.blank?
  @current_owner = self.send(::RailsExecution.configuration.owner_method)
end

#normal_labelsObject



11
12
13
# File 'app/helpers/rails_execution/base_helper.rb', line 11

def normal_labels
  @normal_labels ||= RailsExecution::Label.normal
end