railsdog/deface — pull request #41 by robertoles (2012-05-15 13:44:17+00:00)
Title: Adding move_top and move_bottom actions for overrides

Hi,

I have added the actions :move_top and :move_bottom to override in order to move an existing element in to another defined in the same template. To define the destination I have added a the option :to to the override initializer.

Example:

# app/views/templates/move.html.erb

Target

Destination

# app/overrides/move_target.rb
Deface::Override.new(
virtual_path: "templates/move",
move_bottom: ".target",
to: ".destinaiton",
name: 'move_target')

# Would produce the result...

Destination

Target

Any thoughts?