summaryrefslogtreecommitdiff
path: root/lib/bitbucket
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket')
-rw-r--r--lib/bitbucket/page.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bitbucket/page.rb b/lib/bitbucket/page.rb
index ad9a2baba36..0e8ce11aa1d 100644
--- a/lib/bitbucket/page.rb
+++ b/lib/bitbucket/page.rb
@@ -29,8 +29,7 @@ module Bitbucket
end
def representation_class(type)
- class_name = "Bitbucket::Representation::#{type.to_s.camelize}"
- class_name.constantize
+ class_name = Bitbucket::Representation.const_get(type.to_s.camelize)
end
end
end