Sha256: 142486f9ee1032a85b4a1ea849ac941302e14f30b6b7f7b799a9b10d5e722c25

Contents?: true

Size: 792 Bytes

Versions: 6

Compression:

Stored size: 792 Bytes

Contents

require 'dynaspan/version'


module Dynaspan
  ASSETS = %W(dynaspan/*.js dynaspan/*.css dynaspan/*.png dynaspan/*.gif dynaspan/*.html dynaspan/*.md)
  INITIALIZER = "initializer 'dynaspan.assets.precompile', group: :all do |app| app.config.assets.precompile += Dynaspan::ASSETS; end"

  class Engine < ::Rails::Engine
    isolate_namespace Dynaspan

    eval Dynaspan::INITIALIZER

    initializer 'dynaspan.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper Dynaspan::ApplicationHelper
      end
    end

    if ::Rails.version.to_s =~ /^4/
      rake_tasks do
        load "dynaspan/tasks.rake"
      end
    end
  end

  if ::Rails.version.to_s =~ /^3\.[0]/
    class Railtie < ::Rails::Railtie
      eval Dynaspan::INITIALIZER
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dynaspan-0.1.5 lib/dynaspan.rb
dynaspan-0.1.4 lib/dynaspan.rb
dynaspan-0.1.3 lib/dynaspan.rb
dynaspan-0.1.3.beta1 lib/dynaspan.rb
dynaspan-0.1.2 lib/dynaspan.rb
dynaspan-0.1.2.beta1 lib/dynaspan.rb