Updated with hashrocket
This commit is contained in:
parent
769b0569db
commit
93667018c1
@ -52,11 +52,11 @@ class ContentInstance
|
|||||||
end
|
end
|
||||||
|
|
||||||
def next
|
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
|
end
|
||||||
|
|
||||||
def previous
|
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
|
end
|
||||||
|
|
||||||
def errors_to_hash
|
def errors_to_hash
|
||||||
|
Loading…
Reference in New Issue
Block a user