Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davetheninja/4024231 to your computer and use it in GitHub Desktop.
Save davetheninja/4024231 to your computer and use it in GitHub Desktop.
Can this be simplified??
def get_course
course_params = params[:course]
Course.find_by_id(course_params[:id]) unless course_params.nil?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment