Sha256: dcc292dfecf6584b7849807dc797e8a86f77fbbb2c80e3873f8674606d542444

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

require 'rails'

# Stub engine to integrate asset pipeline.
module Facades
  class Engine < Rails::Engine 
    
    require 'facades/helpers'
    require 'facades/builders/sprite'
    require 'sass'
    require 'sass/rails'
    
    config.sass.load_paths << File.expand_path("../../stylesheets", __FILE__)
    Facades::Builders::Sprite
    
    ActiveSupport.on_load(:action_controller) do
      include Facades::Helpers::MobileController
    end
    
    initializer 'facades assets' do |app|
      app.config.assets.instance_eval do
        register_mime_type 'image/png', '.png'
      end
    end
       
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facades-0.1.0 lib/facades/support/rails.rb