Sha256: ced3d77c9540a56352429262a30f806e75204f1627887c78036d4bd72d4d1f06
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 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|tasks)($|\/[0-9]*($|\/.*))/ projects.item :capture_hours, t_title(:new, Task), new_task_path 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)($|\/.*))/ end navigation.item :capture_hours, t_title(:new, Task), new_task_path, :if => Proc.new { user_signed_in? } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt_projects-0.3.2 | lib/bookyt_projects/navigation.rb |