Updated with hashrocket
This commit is contained in:
parent
769b0569db
commit
93667018c1
@ -52,11 +52,11 @@ class ContentInstance
|
||||
end
|
||||
|
||||
def next
|
||||
content_type.contents.where(_position_in_list: _position_in_list + 1).first()
|
||||
content_type.contents.where(:_position_in_list => _position_in_list + 1).first()
|
||||
end
|
||||
|
||||
def previous
|
||||
content_type.contents.where(_position_in_list: _position_in_list - 1).first()
|
||||
content_type.contents.where(:_position_in_list => _position_in_list - 1).first()
|
||||
end
|
||||
|
||||
def errors_to_hash
|
||||
|
Loading…
Reference in New Issue
Block a user