Sha256: c8072e0c7f1148c79bd96338fa9fa312ea3bd7b8d6e430e9e6c253a333c0b50b

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

# --                                                            ; {{{1
#
# File        : localconfig/rails.rb
# Maintainer  : Felix C. Stegerman <flx@obfusk.net>
# Date        : 2014-10-21
#
# Copyright   : Copyright (C) 2014  Felix C. Stegerman
# Licence     : LGPLv3+
#
# --                                                            ; }}}1

require 'rails'

require 'localconfig'

# namespace
module LocalConfig

  # railtie that sets config.local to LocalConfig['rails'] and adds
  # the rake tasks
  class Railtie < Rails::Railtie
    config.local = LocalConfig['rails']
    rake_tasks { LocalConfig::Rake.define_tasks } \
      unless LocalConfig['rails'].no_rake
  end

end

# vim: set tw=70 sw=2 sts=2 et fdm=marker :

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
localconfig-0.3.3 lib/localconfig/rails.rb
localconfig-0.3.2 lib/localconfig/rails.rb
localconfig-0.3.1 lib/localconfig/rails.rb
localconfig-0.3.0 lib/localconfig/rails.rb