Sha256: b58aca959c38262f2677cc518763c8ce2519121a0de35ae78a634577e1e5d68c

Contents?: true

Size: 511 Bytes

Versions: 14

Compression:

Stored size: 511 Bytes

Contents

require 'fgraph'
require 'fgraph/rails/fgraph_helper'
require 'fgraph/rails/fgraph_tag_helper'

FGRAPH_CONFIG = "#{RAILS_ROOT}/config/fgraph.yml"

# Load configuration file
if File.exists?(FGRAPH_CONFIG)
  fgraph_config = YAML.load(ERB.new(File.read(FGRAPH_CONFIG)).result)
  FGraph.config = fgraph_config[RAILS_ENV]
end

ActionController::Base.send :include, FGraph::Rails::FGraphHelper
ActionView::Base.send :include, FGraph::Rails::FGraphHelper
ActionView::Base.send :include,  FGraph::Rails::FGraphTagHelper

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fgraph-0.7.0 rails/init.rb
fgraph-0.6.2 rails/init.rb
fgraph-0.6.1 rails/init.rb
fgraph-0.6.0 rails/init.rb
fgraph-0.5.1 rails/init.rb
fgraph-0.5.0 rails/init.rb
fgraph-0.4.0 rails/init.rb
fgraph-0.3.4 rails/init.rb
fgraph-0.3.3 rails/init.rb
fgraph-0.3.2 rails/init.rb
fgraph-0.3.1 rails/init.rb
fgraph-0.3.0 rails/init.rb
fgraph-0.2.1 rails/init.rb
fgraph-0.2.0 rails/init.rb