Skip to content

Instantly share code, notes, and snippets.

@pgdaniel
Created October 4, 2013 21:55
Show Gist options
  • Save pgdaniel/6833468 to your computer and use it in GitHub Desktop.
Save pgdaniel/6833468 to your computer and use it in GitHub Desktop.
def single_widget_params
params.require(:single_widget).permit(
:title, :max_votes_per_day, :expires_at_date, :cms_title,
:expires_at_time, :logo, :logo_cache, :start_screen_text, :tos_text, :recording_tips, :hashtags,
:id, :respond_button_color, :respond_button_font_color,
:video_max_length,
widget_video: [
video_attributes: [
:id, :creation_mode, :description, :username, :embed_code,
:cover_photo, :cover_photo_cache, :tag_list
]
]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment