Skip to content

Instantly share code, notes, and snippets.

@katafrakt
Created March 12, 2016 15:30
Show Gist options
  • Save katafrakt/5945f0b2de9e6fbf4c7d to your computer and use it in GitHub Desktop.
Save katafrakt/5945f0b2de9e6fbf4c7d to your computer and use it in GitHub Desktop.
A quality ruby code
@image_type = params[:image][:type] ? params[:image][:type] : nil
@show_uploader = params[:uploader] == 'false' ? false : true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment