Sha256: d68316352d739cff948767fb9b90a2c88f6b4c27e2170cebdfb42604b727a82e

Contents?: true

Size: 371 Bytes

Versions: 5

Compression:

Stored size: 371 Bytes

Contents

module ActiveDecorator
  def self.configure(&block)
    yield @config ||= ActiveDecorator::Configuration.new
  end

  def self.config
    @config
  end

  # need a Class for 3.0
  class Configuration #:nodoc:
    include ActiveSupport::Configurable

    config_accessor :decorator_suffix
  end

  configure do |config|
    config.decorator_suffix = 'Decorator'
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
lulalala_presenter-0.0.1 lib/active_decorator/config.rb
active_decorator-0.5.3 lib/active_decorator/config.rb
active_decorator-0.5.2 lib/active_decorator/config.rb
active_decorator-0.5.1 lib/active_decorator/config.rb
active_decorator-0.5.0 lib/active_decorator/config.rb