Sha256: a9115d923e2dcd687ea9f34953da0e82c398ab4aab32c8309e06e7be67739ba8

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

module RailsExecution
  module BaseHelper
    include ActionView::Helpers::AssetUrlHelper

    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

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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/helpers/rails_execution/base_helper.rb
rails_execution-0.1.11 app/helpers/rails_execution/base_helper.rb
rails_execution-0.1.10 app/helpers/rails_execution/base_helper.rb
rails_execution-0.1.9 app/helpers/rails_execution/base_helper.rb
rails_execution-0.1.8 app/helpers/rails_execution/base_helper.rb
rails_execution-0.1.7 app/helpers/rails_execution/base_helper.rb