Sha256: 3c6b976ecc8e7afe7392fe0b2bd30d9b4e56fb6c539b6ce989b2dc83dc4dfc52
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
module BookytProjects module Navigation def setup_bookyt_projects(navigation) navigation.item :projects, t_model(Project), projects_path, :if => Proc.new { user_signed_in? } do |projects| projects.item :project_index, t_title(:index, Project), projects_path, :highlights_on => /\/projects($|\/[0-9]*($|\/.*))/ projects.item :new_project, t_title(:new, Project), new_project_path projects.item :project_states, t_model(ProjectState), project_states_path, :highlights_on => /\/project_states($|\/([0-9]*|new)($|\/.*))/ # projects.item :new_project_state, t_title(:new, ProjectState), new_project_state_path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt_projects-0.1.0 | lib/bookyt_projects/navigation.rb |