Skip to content

Commit

Permalink
Added name attribute to post (for post stream)
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 18, 2010
1 parent 89f8b25 commit a8be66b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vendor/modules/blog/app/models/blog/blog_post.rb
Expand Up @@ -130,6 +130,10 @@ def set_categories!(category_ids)
class_eval("def #{fld}=(val); self.revision.#{fld} = val; end")
end

def name
self.revision.title
end

[ :domain_file, :preview_content, :end_user,:media_file, :body_content ].each do |fld|
class_eval("def #{fld}; self.revision.#{fld}; end")
end
Expand Down

0 comments on commit a8be66b

Please sign in to comment.