Sha256: 7d7b731b686d73e027864dbd66a82a3e528ef50cfc6220e9e5043813781df7a2

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

module Trestle
  module ResourceHelpers
    class Engine < Rails::Engine
      config.assets.precompile << 'trestle/resource_description.css'

      # config.to_prepare do
      #  Trestle::ResourceController.send(:include, Trestle::ResourceHelpers::ControllerConcern)
      # end

      initializer :extensions do
        Trestle::Resource.send(:include, Trestle::ResourceHelpers::Resource)
        Trestle::Resource::Builder.send(:include, Trestle::ResourceHelpers::Builder)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-resource_helpers-0.1.1 lib/trestle/resource_helpers/engine.rb
trestle-resource_helpers-0.1.0 lib/trestle/resource_helpers/engine.rb