some real models

This commit is contained in:
Torsten Ruger
2015-07-30 10:09:04 +03:00
parent a2f3daa828
commit d8a3657365
5 changed files with 36 additions and 26 deletions

View File

@ -0,0 +1,8 @@
class BlocksModel < Volt::ArrayModel
def instruction_changed old , ins
self.last._class_name = "" if( page._blocks.length > 0)
self << { :name => ins.to_s , :class_name => "active" }
end
end