0
@@ -119,32 +119,32 @@ class Article < Content
0
- self.permalink = title.strip.downcase \
0
- .gsub(/(\W|\ )+/, '-') \
0
- .chomp('-').reverse.chomp('-').reverse
0
- def set_filter_from_user
0
- self.filters = user.filters if filters.nil?
0
- def save_assigned_sections
0
- return if @new_sections.nil?
0
- assigned_sections.each do |assigned_section|
0
- @new_sections.delete(assigned_section.section_id.to_s) || assigned_section.destroy
0
+ self.permalink = title.strip.downcase \
0
+ .gsub(/(\W|\ )+/, '-') \
0
+ .chomp('-').reverse.chomp('-').reverse
0
- if !@new_sections.blank?
0
- Section.find(:all, :conditions => ['id in (?)', @new_sections]).each { |section| assigned_sections.create :section => section }
0
+ def set_filter_from_user
0
+ self.filters = user.filters if filters.nil?
0
+ def save_assigned_sections
0
+ return if @new_sections.nil?
0
+ assigned_sections.each do |assigned_section|
0
+ @new_sections.delete(assigned_section.section_id.to_s) || assigned_section.destroy
0
+ if !@new_sections.blank?
0
+ Section.find(:all, :conditions => ['id in (?)', @new_sections]).each { |section| assigned_sections.create :section => section }
0
+ def body_for_mode(mode = :list)
0
+ (mode == :single ? excerpt_html.to_s + "\n\n" + body_html.to_s : (excerpt_html || body_html)).strip
0
- def body_for_mode(mode = :list)
0
- (mode == :single ? excerpt_html.to_s + "\n\n" + body_html.to_s : (excerpt_html || body_html)).strip
0
\ No newline at end of file