Sha256: 3dcc84fd5b63a2f2a617d654eb1a0e8ce7d04369e000a0196086369141bc6a02
Contents?: true
Size: 746 Bytes
Versions: 3
Compression:
Stored size: 746 Bytes
Contents
module Support module ConfigHelpers def with_config(method, value) Corkboard.send(method, value) yield ensure # NOTE: capturing and resetting-to the original (above) resulted in # intermittent failures. Using defaults here is more stable, but # will require maintenance (in the event that the defaults change). Corkboard.send(method, send(:"defaults_for_#{method}")) end def defaults_for_authentication { :admin => :disallow!, :board => nil } end def defaults_for_presentation { :title => 'Corkboard', :description => 'Corkboard', :framework => :bootstrap, :weights => { :s => 10, :m => 3, :l => 1 } } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
corkboard-0.1.3 | spec/support/helpers/config_helpers.rb |
corkboard-0.1.2 | spec/support/helpers/config_helpers.rb |
corkboard-0.1.1 | spec/support/helpers/config_helpers.rb |