Sha256: 85c89c52d73f32e5abb72ac200edbcf4f1c2abd323c46cb9d5b9a092ebfe8ff0

Contents?: true

Size: 216 Bytes

Versions: 1

Compression:

Stored size: 216 Bytes

Contents

module MenuBuilder
  module Controller

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
menu_builder-0.0.2 lib/menu_builder/controller.rb