Class: ViewModel::Migration

Inherits:
Object
  • Object
show all
Defined in:
lib/view_model/migration.rb

Defined Under Namespace

Classes: Builder, NoPathError, OneWayError, UnspecifiedVersionError

Instance Method Summary collapse

Instance Method Details

#down(view, _references) ⇒ Object



12
13
14
# File 'lib/view_model/migration.rb', line 12

def down(view, _references)
  raise ViewModel::Migration::OneWayError.new(view[ViewModel::TYPE_ATTRIBUTE], :down)
end

#up(view, _references) ⇒ Object



8
9
10
# File 'lib/view_model/migration.rb', line 8

def up(view, _references)
  raise ViewModel::Migration::OneWayError.new(view[ViewModel::TYPE_ATTRIBUTE], :up)
end