From e7060b7e007c797feaf8cee9a9ca483c376ad051 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Thu, 11 Dec 2014 11:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFassets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 1 + Gemfile.lock | 8 ++++++++ config/application.rb | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 1fe5b6c0f..e6de496ea 100644 --- a/Gemfile +++ b/Gemfile @@ -21,6 +21,7 @@ gem 'acts-as-taggable-on', '2.4.1' group :development do gem 'grape-swagger' + gem 'grape-swagger-ui', git: 'https://github.com/guange2015/grape-swagger-ui.git' gem 'puma' gem 'better_errors', path: 'lib/better_errors' gem 'rack-mini-profiler', path: 'lib/rack-mini-profiler' diff --git a/Gemfile.lock b/Gemfile.lock index 95ea5b6e2..4ac0ba2a3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,10 @@ +GIT + remote: https://github.com/guange2015/grape-swagger-ui.git + revision: 4c33439f236c174ae0e774b3435ef2547995c21d + specs: + grape-swagger-ui (0.0.4) + railties (>= 3.1) + PATH remote: lib/better_errors specs: @@ -311,6 +318,7 @@ DEPENDENCIES grape (~> 0.9.0) grape-entity grape-swagger + grape-swagger-ui! guard-rails (~> 0.5.3) guard-spork (~> 1.5.1) guard-test (~> 1.0.0) diff --git a/config/application.rb b/config/application.rb index d37a9eae2..23d0c8a14 100644 --- a/config/application.rb +++ b/config/application.rb @@ -44,7 +44,7 @@ module RedmineApp config.filter_parameters += [:password] # Enable the asset pipeline - config.assets.enabled = false + config.assets.enabled = true # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0'