cockpit
cockpit copied to clipboard
Super DRY Settings for Ruby, Rails, and Sinatra Apps
I'm having an issue accessing the available settings in an initializer. Here's the initializer section for Devise ``` ruby unless Cockpit::Settings["site.external_auth.type"].blank? config.omniauth Cockpit::Settings['site.external_auth.type'].to_sym, :host => Cockpit::Settings['site.external_auth.host'], :ssl => Cockpit::Settings['site.external_auth.use_ssl'] end...
A while back I had the exact same idea that you had; make a dsl to do all my dirty work. At this time I was writing Flex applications; and...
Right, back again... I've got the following settings in an initializer: ``` Cockpit 'active_record' do site do default_page_title 'Default Page Title' default_tagline 'Default Tagline' default_meta_tags 'Default Meta Tags' end end...