Method: Social::Determinant::SocialPrefix.produce

Defined in:
lib/social/determinant/social_prefix.rb

.produce(app) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/social/determinant/social_prefix.rb', line 61

def self.produce(app)
  new do

    map '/' do
      run app
    end

    Social.type_prefixes.each_with_index do |prefix, index|

      map '/' + prefix do
        use Provider.build(prefix)
        run app
      end

    end

  end
end