Sha256: a4b6bc023caef4b8b650ca6810cf7d065bfd695d2a09b95b00fbd826f7a74d37

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

module Goldencobra
    module ActsAsSetting
        module Controller
          
            def s(name)
              if name.present?
                Goldencobra::Setting.for_key(name)
              end
            end
            
        end
    end
end
       
::ActionController::Base.send :include, Goldencobra::ActsAsSetting::Controller

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
goldencobra-1.4.27 lib/goldencobra/acts_as_setting.rb
goldencobra-1.4.0 lib/goldencobra/acts_as_setting.rb
goldencobra-1.3.4 lib/goldencobra/acts_as_setting.rb
goldencobra-1.2.8 lib/goldencobra/acts_as_setting.rb
goldencobra-1.2.0 lib/goldencobra/acts_as_setting.rb
goldencobra-1.1.0 lib/goldencobra/acts_as_setting.rb
goldencobra-1.0.9.3 lib/goldencobra/acts_as_setting.rb