Sha256: ebab7f4283887ed94f3ce5816995d0e364ea87863026418b0c980caffc3475cd

Contents?: true

Size: 609 Bytes

Versions: 50

Compression:

Stored size: 609 Bytes

Contents

require 'active_support/concern'

module Shopapp3
  extend ActiveSupport::Concern

  included do
  end

  class_methods do
    attr_reader :sidebar_actions_array
    def sidebar_action(params)
      @sidebar_actions_array ||= []
      @sidebar_actions_array << params
    end
  end

  def sidebar_actions_list
    self.class.sidebar_actions_array || [
      {
        path: '/',
        icon: 'shopapp3/icon-1.svg',
        tooltip: 'Application Home',
      },
      {
        path: 'https://accounts.shoplift.fi',
        icon: 'shopapp3/icon-3.svg',
        tooltip: 'My Account',
      },
    ]
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
shopapp-0.2.63 app/controllers/concerns/shopapp3.rb
shopapp-0.2.62 app/controllers/concerns/shopapp3.rb
shopapp-0.2.61 app/controllers/concerns/shopapp3.rb
shopapp-0.2.60 app/controllers/concerns/shopapp3.rb
shopapp-0.2.59 app/controllers/concerns/shopapp3.rb
shopapp-0.2.58 app/controllers/concerns/shopapp3.rb
shopapp-0.2.57 app/controllers/concerns/shopapp3.rb
shopapp-0.2.56 app/controllers/concerns/shopapp3.rb
shopapp-0.2.55 app/controllers/concerns/shopapp3.rb
shopapp-0.2.54 app/controllers/concerns/shopapp3.rb
shopapp-0.2.53 app/controllers/concerns/shopapp3.rb
shopapp-0.2.52 app/controllers/concerns/shopapp3.rb
shopapp-0.2.51 app/controllers/concerns/shopapp3.rb
shopapp-0.2.50 app/controllers/concerns/shopapp3.rb
shopapp-0.2.49 app/controllers/concerns/shopapp3.rb
shopapp-0.2.48 app/controllers/concerns/shopapp3.rb
shopapp-0.2.47 app/controllers/concerns/shopapp3.rb
shopapp-0.2.46 app/controllers/concerns/shopapp3.rb
shopapp-0.2.45 app/controllers/concerns/shopapp3.rb
shopapp-0.2.44 app/controllers/concerns/shopapp3.rb