Sha256: 378dd5df90cc2441b74779953c601882087ff26fca4ded90fd7b987bb05ff1d8

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

module Happy
  class Controller
    module Configurable
      extend ActiveSupport::Concern

      def config
        self.class.config
      end

      module ClassMethods
        def config
          @config ||= {}
        end

        def set(k, v)
          config[k.to_sym] = v
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
happy-0.1.0.pre20 lib/happy/controller/configurable.rb
happy-0.1.0.pre19 lib/happy/controller/configurable.rb