Skip to content

Commit

Permalink
Trying to fix 1.8 bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbleigh committed Aug 28, 2012
1 parent 7166363 commit 1b9217d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module DSL
def self.included(base)
base.extend ClassMethods
ancestor_entity_class = base.ancestors.detect{|a| a.entity_class if a.respond_to?(:entity_class)}
const_set(:Entity, Class.new(ancestor_entity_class || Grape::Entity)) unless const_defined?(:Entity)
base.const_set(:Entity, Class.new(ancestor_entity_class || Grape::Entity)) unless const_defined?(:Entity)
end

module ClassMethods
Expand Down

0 comments on commit 1b9217d

Please sign in to comment.