Sha256: 5c8e6d73e914b63d40d2747c6f39b50fc8ac386963d958ff3b5d9d6c1fbf979c

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

require 'rails'

# An engine doesn't require it's own dependencies automatically. We also don't
# want the applications to have to do that.
require 'cancan'
require 'authlogic'
require 'kaminari'
require 'iq_rdf'
require 'json'

module Iqvoc

  class Engine < Rails::Engine

    paths.lib.tasks  << "lib/engine_tasks"

    # This will be defined in Rails 3.1 (as well as all the tasks in lib/engine_tasks)
    def self.load_seed
      seed_file = Iqvoc::Engine.find_root_with_flag("db").join('db/seeds.rb')
      load(seed_file) if File.exist?(seed_file)
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iqvoc-3.2.11 config/engine.rb
iqvoc-3.2.10 config/engine.rb
iqvoc-3.2.9 config/engine.rb
iqvoc-3.2.8 config/engine.rb
iqvoc-3.2.7 config/engine.rb
iqvoc-3.2.6 config/engine.rb
iqvoc-3.2.5 config/engine.rb
iqvoc-3.2.4 config/engine.rb
iqvoc-3.2.3 config/engine.rb