Sha256: 04e3eb003f95f2288b9c496f92f3f6c739e08dc520c528cc2a8f08f886f7af9e

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8
#
# Copyright (C) 2011-2012  AdMaster, Inc.

module <%= module_name %>
  class Application < Sinatra::Base

    use Apimaster::Application

    # controllers
    <%= module_name %>.constants.each do |k|
      if k =~ /Controller$/
        use <%= module_name %>.const_get(k)
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
apimaster-0.1.4 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.1.3 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.1.2 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.1.1 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.0.7 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.0.6 lib/apimaster/generators/templates/config/application.rb.erb
apimaster-0.0.5 lib/apimaster/generators/templates/config/application.rb.erb