Orbit/app/controllers/orbit_widget_controller.rb

10 lines
267 B
Ruby
Raw Normal View History

2012-03-06 08:41:06 +00:00
class OrbitWidgetController< OrbitFrontendComponentController
2012-12-28 07:30:46 +00:00
before_filter :get_wiget_options
2012-12-28 07:30:46 +00:00
def get_wiget_options
@wiget_options = {}
if params[:widget_options]
@wiget_options = (eval('{'+ params[:widget_options] +'}') rescue {})
end
end
end