Skip to content

Instantly share code, notes, and snippets.

@shuhei
Last active December 21, 2015 13:58
Show Gist options
  • Save shuhei/6315928 to your computer and use it in GitHub Desktop.
Save shuhei/6315928 to your computer and use it in GitHub Desktop.
Prevent paper_trails from causing errors in konacha server. Konacha::SpecsController doesn't need paper_trails anyway because it only serves spec files.
Konacha::SpecsController.class_eval do
def paper_trail_enabled_for_controller
false
end
end if defined?(Konacha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment