mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -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'
|
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
|
||||||
Reference in New Issue
Block a user