Sha256: be813425fdf4d4f7d9b22959f2be4b4d12452af216c023c0681b0016da77f2bc
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
module DynamicMenu module InheritableMenus def get_current_menu path = Rails.root.join('app/menus') require path + "#{params[:controller]}/#{params[:action]}.rb" current_user ||= nil menu = "#{params[:action]}Menu".classify.constantize.new(current_user) return menu end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamic_menu-3.0.0.pre2 | lib/dynamic_menu/inheritable_menus.rb |