swap profile name

This commit is contained in:
Rafael Schouten
2014-09-19 12:18:02 +10:00
parent 527a139f72
commit f9cbdcee0a

View File

@@ -36,7 +36,7 @@ class Api::UncachedEnterpriseSerializer < ActiveModel::Serializer
object.is_distributor && object.type != 'profile'
end
def profile_only
def is_profile
object.type = 'profile'
end