Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

apply_defaults causing errors with default property lambdas

#35

if you place the "apply_defaults" method after the "passed_keys.each" block, you can set more complex lambdas as the default property values, such as:

property :url, :default => lambda { "#{database.root}/#{self.id}/#{filename}" }

Otherwise the values aren't yet in place, and we have to create tons of excess methods.

Reported by viatropos · June 22nd, 2009 @ 04:29 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.