##// END OF EJS Templates
Add support for unattached menus (generated dynamically)...
Add support for unattached menus (generated dynamically) A MenuItem can define a :child_menus option with a Proc. When the menus are rendered, the Proc will be run and the resulting MenuItems will be added to the page as child menus #4250 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3091 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2816:35333367dff6
r2977:b0999e3764f0
Show More
time_entry_exemplar.rb
5 lines | 148 B | text/x-ruby | RubyLexer
/ test / exemplars / time_entry_exemplar.rb
class TimeEntry < ActiveRecord::Base
generator_for(:spent_on) { Date.today }
generator_for(:hours) { (rand * 10).round(2) } # 0.01 to 9.99
end