Sha256: 34659ffdf71d9adc389f19ef8fdce7f8394b945d4fba133b3535eca18a82f17c

Contents?: true

Size: 548 Bytes

Versions: 12

Compression:

Stored size: 548 Bytes

Contents

rad.configurators

class Abstract
  def initialize dir
    @dir = File.expand_path(dir)
  end
  
  # def config options = {}
  #   rad.config.merge_config! "#{dir}/config/config.yml", options
  # end
  
  def routes
    routes_file = "#{dir}/config/routes.rb"
    load routes_file if File.exist? routes_file
  end
  
  def locales
    I18n.load_path += Dir["#{dir}/config/locales/**/*.{rb,yml}"]
    I18n.load_path += Dir["#{dir}/config/locales/*.{rb,yml}"]
  end
  
  protected        
    attr_reader :dir #, :after_config, :after_environment
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/configurators/abstract.rb
rad_core-0.2.5 lib/rad/configurators/abstract.rb
rad_core-0.2.4 lib/rad/configurators/abstract.rb
rad_core-0.2.3 lib/rad/configurators/abstract.rb
rad_core-0.2.2 lib/rad/configurators/abstract.rb
rad_core-0.2.1 lib/rad/configurators/abstract.rb
rad_core-0.2.0 lib/rad/configurators/abstract.rb
rad_core-0.0.30 lib/rad/configurators/abstract.rb
rad_core-0.0.29 lib/rad/configurators/abstract.rb
rad_core-0.0.28 lib/rad/configurators/abstract.rb
rad_core-0.0.27 lib/rad/configurators/abstract.rb
rad_core-0.0.26 lib/rad/configurators/abstract.rb