File: engine-root.patch

package info (click to toggle)
ruby-rails-timeago 2.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 368 kB
  • ctags: 778
  • sloc: ruby: 241; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: change rails engine root
 Debian specific.
Author: Pirate Praveen <praveen@debian.org>
Last-Updated: 2014-09-30

Index: ruby-rails-timeago-2.11.1/lib/rails-timeago.rb
===================================================================
--- ruby-rails-timeago-2.11.1.orig/lib/rails-timeago.rb
+++ ruby-rails-timeago-2.11.1/lib/rails-timeago.rb
@@ -5,6 +5,7 @@ module Rails
   module Timeago
     if defined?(::Rails::Engine)
       class Engine < ::Rails::Engine # :nodoc:
+	config.root = '/usr/share/ruby-rails-timeago'
         initializer 'rails-timeago', :group => :all do |app|
           ActiveSupport.on_load(:action_controller) do
             include Rails::Timeago::Helper