_id is now an alias for _slug (content entry)
did
committed Nov 06, 2014
commit 9e190e0aef9095023eb27bf81630a5aafbd1c51b
Showing 2
changed files with
3 additions
and 0 deletions
locomotive/wagon/liquid/drops/content_entry.rb b/lib/locomotive/wagon/liquid/drops/content_entry.rb
+1
-0
| @@ | @@ -15,6 +15,7 @@ module Locomotive |
| end | |
| alias :_slug :_permalink | |
| + | alias :_id :_permalink |
| def next | |
| self | |
locomotive/wagon/liquid/scopeable.rb b/lib/locomotive/wagon/liquid/scopeable.rb
+2
-0
| @@ | @@ -56,6 +56,8 @@ module Locomotive |
| def initialize(name, value) | |
| self.name, self.right_operand = name, value | |
| + | self.name = :_slug if %w(id _id).include?(name.to_s) |
| + | |
| self.process_right_operand | |
| # default value | |