0.0
No commit activity in last 3 years
No release in over 3 years
Little configuration framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

ConfoConfig

A little configuration DSL

configuration do
  autocomplete_limit 20
  autocomplete_phrase_length 2

  i18n do
    available_locales [:en, :ru]
    default_locale :en
  end

  list do
    single_actions { can :update, :toggle, :delete, :preview }
    plural_actions { can :create, :filter, :export, :search }

    highlight { role admin: :red, user: :gray }

    configure(:column, :avatar) { type :photo }

    columns { include :name, :avatar, :role }
  end

  form do
    configure(:input, :avatar) { type :photo }
    actions { can :save, :cancel }
  end
end

Gemfile

gem 'confo-config', github: 'yivo/confo-config'