app/controllers/lookbook/previews_controller.rb in lookbook-1.0.8 vs app/controllers/lookbook/previews_controller.rb in lookbook-1.1.0
- old
+ new
@@ -95,10 +95,10 @@
def set_params
if @target
# cast known params to type
@target.params.each do |param|
if preview_controller.params.key?(param[:name])
- preview_controller.params[param[:name]] = Lookbook::Params.cast(preview_controller.params[param[:name]], param[:type])
+ preview_controller.params[param[:name]] = Lookbook::Params.cast(preview_controller.params[param[:name]], param[:value_type])
end
end
# set display and data params
preview_controller.params.merge!({
lookbook: {