Sha256: e224f96e7109b0d1cb7cc75e7d2b84138c7bf069ef436de633a455ca183d8b9c

Contents?: true

Size: 213 Bytes

Versions: 4

Compression:

Stored size: 213 Bytes

Contents

module MenuBuilder
  module Controller

    def menu_item(name, options = {})
      before_filter(options) do |controller|
        controller.instance_variable_set('@menu_item', name)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
menu_builder-0.3.1 lib/menu_builder/controller.rb
menu_builder-0.3.0 lib/menu_builder/controller.rb
menu_builder-0.2.1 lib/menu_builder/controller.rb
menu_builder-0.2.0 lib/menu_builder/controller.rb