summaryrefslogtreecommitdiff
path: root/app/models/route_element.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-19 14:11:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-19 14:11:06 +0100
commit2a130f0ed2a5ada0fda15ee71cd600a25810dcb4 (patch)
tree72a79dace910769847082af114c3ef3183f5bb9f /app/models/route_element.rb
parent3a0213af9ae9fab41dd854e94aa668ee2abc6414 (diff)
parentbcbfb154a321953fd32696065e6af1bec85f9345 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/models/route_element.rb')
-rw-r--r--app/models/route_element.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/route_element.rb b/app/models/route_element.rb
index 324a26d..94f0f84 100644
--- a/app/models/route_element.rb
+++ b/app/models/route_element.rb
@@ -16,4 +16,11 @@ class RouteElement < ActiveRecord::Base
"#{pattern} => #{var_in} #{var_out}"
end
+ def move_up?
+ #return self.position.to_i > RouteElement.where(:call_route_id => self.call_route_id ).order(:position).first.position.to_i
+ end
+
+ def move_down?
+ #return self.position.to_i < RouteElement.where(:call_route_id => self.call_route_id ).order(:position).last.position.to_i
+ end
end