lib//meta/route_dsl/meta_builder.rb in meta-api-0.1.1 vs lib//meta/route_dsl/meta_builder.rb in meta-api-0.1.2

- old
+ new

@@ -43,12 +43,9 @@ codes.each { |code| @meta[:responses][code] = entity_schema } end def scope(scope) scope = [scope] unless scope.is_a?(Array) - unless scope.all? { |s| s.start_with?('$') } - raise ArgumentError, 'namespace 和 route 中声明的 scope 必须是全局 scope(以 $ 开头)' - end @meta[:scope] = scope end [:tags, :title, :description].each do |method_name|