Sha256: d9d4f670eb28b2f037047cadc3ad5746b5d251dc77053f4e6fc2067184c2b077

Contents?: true

Size: 348 Bytes

Versions: 22

Compression:

Stored size: 348 Bytes

Contents

require 'rails/engine'

module Refinery
  module Engine
    class << self
      def included(base)
        base.module_eval do
          class << self
            def refinery
              ::Refinery.config
            end
          end

          def refinery
            self.class.refinery
          end
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
refinerycms-core-1.0.11 lib/refinery/engine.rb
refinerycms-core-1.0.10 lib/refinery/engine.rb
refinerycms-core-1.0.9 lib/refinery/engine.rb
refinerycms-core-1.0.8 lib/refinery/engine.rb
refinerycms-core-1.0.7 lib/refinery/engine.rb
refinerycms-core-1.0.5 lib/refinery/engine.rb
refinerycms-core-1.0.4 lib/refinery/engine.rb
refinerycms-core-1.0.3 lib/refinery/engine.rb
refinerycms-core-1.0.1 lib/refinery/engine.rb
refinerycms-core-1.0.0 lib/refinery/engine.rb
refinerycms-core-0.9.9.22 lib/refinery/engine.rb
refinerycms-core-0.9.9.21 lib/refinery/engine.rb
refinerycms-core-0.9.9.20 lib/refinery/engine.rb
refinerycms-core-0.9.9.19 lib/refinery/engine.rb
refinerycms-core-0.9.9.18 lib/refinery/engine.rb
refinerycms-core-0.9.9.17 lib/refinery/engine.rb
refinerycms-core-0.9.9.16 lib/refinery/engine.rb
refinerycms-core-0.9.9.15 lib/refinery/engine.rb
refinerycms-core-0.9.9.14 lib/refinery/engine.rb
refinerycms-core-0.9.9.13 lib/refinery/engine.rb