module VotingApp
  class Engine < ::Rails::Engine
    isolate_namespace VotingApp

    initializer 'votes limit' do |app|
      app.config.votes_limit = ENV['VOTES_LIMIT'] || 10
    end

  end
end

module VotingApp
  class Engine < ::Rails::Engine
    isolate_namespace VotingApp

    initializer 'votes limit' do |app|
      app.config.votes_limit = ENV['VOTES_LIMIT'].to_i || 10
    end

  end
end

Convert votes limit env var to integer
Convert votes limit env var to integer
