Skip to content

Commit

Permalink
Added missing AS require to active_model/naming.rb
Browse files Browse the repository at this point in the history
We saw a failing spec when running the DataMapper
ActiveModel compliance specs for dm-active_model.

  ActiveModel::Naming#model_name

relies on the Module#parents method defined in

  active_support/core_ext/module/introspection.rb

Adding the appropriate require statement of course
fixed our specs.
  • Loading branch information
snusnu authored and josevalim committed Oct 29, 2010
1 parent 6a3d6b7 commit 973b908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activemodel/lib/active_model/naming.rb
@@ -1,5 +1,6 @@
require 'active_support/inflector'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/module/introspection'

module ActiveModel
class Name < String
Expand Down

0 comments on commit 973b908

Please sign in to comment.