Class: Piper::PartialsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/piper/partials_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
# File 'app/controllers/piper/partials_controller.rb', line 3

def show
  name, locals = Piper::Encoding::decode(params[:data])
  render partial: name, locals: eval(locals)
end