Skip to content
Browse files

Require Hash extensions for assert_valid_keys

  • Loading branch information...
1 parent fd35997 commit 10e368df32bbf1b7e2ae0b51ad331e91a04f5b97 @haines committed Dec 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/draper.rb
View
2 lib/draper.rb
@@ -14,6 +14,8 @@
require 'draper/collection_decorator'
require 'draper/railtie' if defined?(Rails)
+require 'active_support/core_ext/hash/keys'
+
module Draper
def self.setup_action_controller(base)
base.class_eval do

3 comments on commit 10e368d

@tovodeverett

I even thought about doing that when I started to make the change, but then forgot to do it.

@haines
Owner
haines commented on 10e368d Dec 13, 2012

Yeah, I don't think it's really necessary, but since we do it here for extract_options! I figured we might as well be consistent.

@tovodeverett

Also, we're relying on it for slice in DecoratedAssociation#decorator_options.

Please sign in to comment.
Something went wrong with that request. Please try again.