Support for creating embedded topics via API

This commit is contained in:
Robin Ward
2014-04-03 14:42:26 -04:00
parent ecf211aa3f
commit dbab628e16
3 changed files with 26 additions and 1 deletions

View File

@ -256,6 +256,9 @@ class PostsController < ApplicationController
# php seems to be sending this incorrectly, don't fight with it
params[:skip_validations] = params[:skip_validations].to_s == "true"
permitted << :skip_validations
# We allow `embed_url` via the API
permitted << :embed_url
end
params.require(:raw)