def set_default_resources
      name = self.name
      namespaced_names = name.split(/::|Controller/)

      model_name = namespaced_names.pop.try(:singularize)
      parent_name = namespaced_names.join('::').try(:singularize)

      if model_name.present?
        set_resource model_name.constantize
      else
        raise "#{model_name} based on #{name} does not exist."
      end

      if parent_name.present?
        parent_klass = parent_name.safe_constantize
        if parent_klass
          set_resource_parent parent_klass
        else
          logger.debug "[lazy_crud] #{parent_name} could not be found as a class / module."
        end
      end
    end
def set_default_resources
      name = self.name
      namespaced_names = name.split(/::|Controller/)

      model_name = namespaced_names.pop.try(:singularize)
      parent_name = namespaced_names.join('::').try(:singularize)

      if model_name.present?
        set_resource model_name.constantize
      else
        raise "#{model_name} based on #{name} does not exist."
      end

      if parent_name.present?
        parent_klass = parent_name.safe_constantize
        if parent_klass
          set_resource_parent parent_klass
        else
          logger.debug "[lazy_crud] #{parent_name} could not be found as a class / module."
        end
      end
    end
determine default resource / pareent resource (if applicable)
 based on the naming convention
 e.g.: Parent::ModelController