I want to give my rails engine gem a proper configuration possibilities.
Something that looks like this in initializers/my_gem.rb
(link to the current initializer):
MyGem.configure do |config|
config.awesome_var = true
# config.param_name = :page
end
So I've looked around for any clues in other gems and the best I cloud find was this kaminari/config.rb
.
But it looks so hacky that I think there must be a better way.