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.77.07 app/controllers/concerns/shopapp3.rb
shopapp-0.76.06 app/controllers/concerns/shopapp3.rb
shopapp-0.76.05 app/controllers/concerns/shopapp3.rb
shopapp-0.76.04 app/controllers/concerns/shopapp3.rb
shopapp-0.75.03 app/controllers/concerns/shopapp3.rb
shopapp-0.75.02 app/controllers/concerns/shopapp3.rb
shopapp-0.73.02 app/controllers/concerns/shopapp3.rb
shopapp-0.3.76 app/controllers/concerns/shopapp3.rb
shopapp-0.2.75 app/controllers/concerns/shopapp3.rb
shopapp-0.2.74 app/controllers/concerns/shopapp3.rb
shopapp-0.2.73 app/controllers/concerns/shopapp3.rb
shopapp-0.2.72 app/controllers/concerns/shopapp3.rb
shopapp-0.2.71 app/controllers/concerns/shopapp3.rb
shopapp-0.2.70 app/controllers/concerns/shopapp3.rb
shopapp-0.2.69 app/controllers/concerns/shopapp3.rb
shopapp-0.2.68 app/controllers/concerns/shopapp3.rb
shopapp-0.2.67 app/controllers/concerns/shopapp3.rb
shopapp-0.2.66 app/controllers/concerns/shopapp3.rb
shopapp-0.2.65 app/controllers/concerns/shopapp3.rb
shopapp-0.2.64 app/controllers/concerns/shopapp3.rb