Sha256: 5968de10e3b00232dd125bc4e899956bfbbce417152001e279e3bb6400003542

Contents?: true

Size: 984 Bytes

Versions: 1

Compression:

Stored size: 984 Bytes

Contents

# Require gems
require 'kaminari' # pagination
require 'ransack' # search
require 'inherited_resources' # simple controllers
require 'simple_form' # simple forms
require 'dynamic_form' # error_messages method
require 'country_code_select' # country_select when having country_code attributes in your simple_forms

# Configure Rails 3.x to include assets.
module AdminInterface

  class Engine < ::Rails::Engine
    # Load translations
    I18n.load_path += Dir.glob( File.expand_path("locales/*.{rb,yml}", File.dirname(__FILE__)) )

    # Load helpers
    # FIXME: Does this work correctly with __FILE__ instead of File.dirname(__FILE__)
    config.autoload_paths << File.expand_path("../../../app/helpers", __FILE__)
    # simple_form gem inputs (for country_helper)
    # config.autoload_paths << File.expand_path("../../../app/inputs", __FILE__) # FIXME: this seems to be auto loaded

    config.assets.precompile += %w( admin_interface.css admin_interface.jquery.js )

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_interface-2.1.8 lib/admin_interface/engine.rb