some real models
This commit is contained in:
8
app/main/models/blocks_model.rb
Normal file
8
app/main/models/blocks_model.rb
Normal 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
|
Reference in New Issue
Block a user