mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-04 01:25:14 -07:00
Migrated from trying-to-understand-drops v2
@@ -5,12 +5,12 @@ Perhaps someone can comment on what the different drops are doing and their purp
|
||||
|
||||
Here are the 'drops'
|
||||
|
||||
class UserDrop < BaseDrop
|
||||
class UserDrop < BaseDrop
|
||||
liquid_attributes << :login << :email
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
class ArticleDrop < BaseDrop
|
||||
class ArticleDrop < BaseDrop
|
||||
include Mephisto::Liquid::UrlMethods
|
||||
|
||||
timezone_dates :published_at, :updated_at
|
||||
@@ -73,4 +73,4 @@ class ArticleDrop < BaseDrop
|
||||
contents.reverse! if mode == :single
|
||||
contents.detect { |content| !content.blank? }.to_s.strip
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user