Migrated from trying-to-understand-drops v2

bkerley
2010-08-12 13:45:54 -07:00
parent 7ed88664fb
commit 90dd24d808
+4 -4
@@ -5,12 +5,12 @@ Perhaps someone can comment on what the different drops are doing and their purp
Here are the 'drops' Here are the 'drops'
class UserDrop < BaseDrop class UserDrop < BaseDrop
liquid_attributes << :login << :email liquid_attributes << :login << :email
end end
class ArticleDrop < BaseDrop class ArticleDrop < BaseDrop
include Mephisto::Liquid::UrlMethods include Mephisto::Liquid::UrlMethods
timezone_dates :published_at, :updated_at timezone_dates :published_at, :updated_at
@@ -73,4 +73,4 @@ class ArticleDrop < BaseDrop
contents.reverse! if mode == :single contents.reverse! if mode == :single
contents.detect { |content| !content.blank? }.to_s.strip contents.detect { |content| !content.blank? }.to_s.strip
end end
end end