Sha256: 2f5c0470743bd83a053c1189459221c0c1fab0099b0dd4fe7b1d4e5f4e56bcf9

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

# Include hook code here

require_dependency  'rtriplify'

require 'configatron'

Hash.class_eval do
  def is_a_special_hash?
    true
  end
end
#set the routes for triplify
ActionController::Routing::Routes.draw do |map|

#  map.connect 'triplify/:action', :controller => 'triplify', :action => 'model'
  map.connect 'triplify', :controller => 'triplify', :action => 'all'
  map.connect 'triplify/:model/:id', :controller => 'triplify', :action => 'model', :id => /\d*/
  map.connect 'triplify/*specs', :controller => 'triplify', :action => "index"
  #map.connect '/rtriplify/*', :controller => 'rtriplify', :action => 'index'
end

#["rtriplify"].each do |plugin_name|
  reloadable_path = RAILS_ROOT + "/vendor/plugins/rtriplify/lib"

#ActiveSupport::Dependencies.load_once_paths.delete(reloadable_path)


#configatron.configure_from_yaml('config/database_1.yml')
configatron.configure_from_yaml('vendor/plugins/rtriplify/lib/config/database.yml')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rtriplify-0.0.0 rails/init.rb