module Decidim
  module Ldap
    class Configuration

      attr_writer :ldap_username, :ldap_password

      def ldap_username
        @ldap_username or fail 'You need to provide a ldap_username. See the app README.'
      end

      def ldap_password
        @ldap_password or fail 'You need to provide a ldap_password. See the app README.'
      end

    end
  end
end

module Decidim
  module Ldap
    class Configuration

      attr_writer :ldap_username, :ldap_password

      # Needed to run rails db:seed
      def self.reset_column_information; end

      def ldap_username
        @ldap_username or fail 'You need to provide a ldap_username. See the app README.'
      end

      def ldap_password
        @ldap_password or fail 'You need to provide a ldap_password. See the app README.'
      end

    end
  end
end

Fix db:seed adding a class method in Decidim::Ldap::Configuration
Fix db:seed adding a class method in Decidim::Ldap::Configuration
