search for: has_template_page_parts

Displaying 1 result from an estimated 1 matches for "has_template_page_parts".

2006 Oct 03
0
WebObjects-style Object Cache
...alue = false) def is_template=(value) super(value) end Now, let''s suppose there''s an attribute on the parent Page object that we would like to update based on what happens in the page_part setter. We might write: def is_template=(value) super(value) self.page.has_template_page_parts = true if value end and you might also want to see a definition for page: (Not this is only the definition I surmise is created automatically by the declaration: "belongs_to :page") def page Page.find_by_id(self.page_id).has_template_page_parts = true if value end Do you see what...