Sha256: a610b5612265cac681d9095981c7b32d09672a574747ea434fc08be06e3a0d15

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

module Catarse
class Adm::BaseController < BaseController
  before_filter :require_admin
  @@menu_items = {}
  cattr_accessor :menu_items

  def self.menu menu=nil
    if menu
      self.menu_items.merge! menu
    else
      self.menu_items
    end
  end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/controllers/catarse/adm/base_controller.rb