Sha256: fe4d9d1ba0b46d4fb40240120dc06feee73476c965ad66b1b4d501b6dd7b0849

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

require "rails"
require "will_paginate"
require "awesome_nested_set"
require "actionpack/page_caching"
require "rails-observers"
require "jquery-rails"

require "rails_ext"

# load vendored gems
Dir["#{File.expand_path("#{__dir__}/../vendor/gems")}/**/lib"].each do |vendored_gem_path|
  $: << vendored_gem_path
end

require "belongs_to_cacheable"
require "cacheable_flash"
require "filtered_column"
require "simple_taggable"
require "tags"
require "table_builder"
require "authentication"
require "adva/event"
require "adva/extensible_forms"

module Adva
  class Engine < Rails::Engine
    initializer "add assets to precompilation list" do |app|
      app.config.assets.precompile += %w(adva_cms.js)
      app.config.assets.precompile += %w(adva_cms/admin.css)
      app.config.assets.precompile += %w(admin.css admin.js)

      app.config.assets.precompile += %w(adva_cms/icons/tick.png adva_cms/icons/cross.png)
    end

    initializer "adva_user.init" do
      Adva::Event.observers << 'PasswordMailer'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-0.2.4 lib/adva.rb
adva-0.2.3 lib/adva.rb
adva-0.2.2 lib/adva.rb
adva-0.2.1 lib/adva.rb
adva-0.2.0 lib/adva.rb