Sha256: a850aad696b120ab29ae0c03023f5c417a4c5a9edf0945fa361284cb7695384e

Contents?: true

Size: 1.22 KB

Versions: 12

Compression:

Stored size: 1.22 KB

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

    # Enabling assets precompiling under rails 3.1
    # See: https://groups.google.com/group/communityengine/browse_thread/thread/7675f6be7320efe2?pli=1
    if Rails.version >= '3.1'
      initializer :assets do |config|
        Rails.application.config.assets.precompile +=
    %w( admin_interface.css admin_interface.jquery.js )
      end
    end 

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
admin_interface-2.2.4 lib/admin_interface/engine.rb
admin_interface-2.2.3 lib/admin_interface/engine.rb
admin_interface-2.2.2 lib/admin_interface/engine.rb
admin_interface-2.2.1 lib/admin_interface/engine.rb
admin_interface-2.2.0 lib/admin_interface/engine.rb
admin_interface-2.1.15 lib/admin_interface/engine.rb
admin_interface-2.1.14 lib/admin_interface/engine.rb
admin_interface-2.1.13 lib/admin_interface/engine.rb
admin_interface-2.1.12 lib/admin_interface/engine.rb
admin_interface-2.1.11 lib/admin_interface/engine.rb
admin_interface-2.1.10 lib/admin_interface/engine.rb
admin_interface-2.1.9 lib/admin_interface/engine.rb