Updated with hashrocket

This commit is contained in:
Karl Brightman 2011-09-16 11:55:30 +08:00
parent 769b0569db
commit 93667018c1
1 changed files with 2 additions and 2 deletions

View File

@ -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